From c7720dedac0653343311b69ae36cd75525944973 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 30 Jan 2020 16:35:22 -0800 Subject: [PATCH] feat!: remove ObjectDetection, ObjectTracking, VideoClassification from v1beta1 client (#67) * [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * allow breaking proto changes * allow removal of resource name helper methods Co-authored-by: Jeff Ching --- google-cloud-datalabeling-bom/pom.xml | 2 +- .../clirr-ignored-differences.xml | 15 + .../v1beta1/DataLabelingServiceClient.java | 2095 +++++++++++------ .../v1beta1/DataLabelingServiceSettings.java | 24 +- .../datalabeling/v1beta1/package-info.java | 6 +- .../v1beta1/stub/DataLabelingServiceStub.java | 10 +- .../stub/DataLabelingServiceStubSettings.java | 74 +- ...rpcDataLabelingServiceCallableFactory.java | 2 +- .../stub/GrpcDataLabelingServiceStub.java | 68 +- .../DataLabelingServiceClientTest.java | 457 ++-- .../v1beta1/MockDataLabelingService.java | 2 +- .../v1beta1/MockDataLabelingServiceImpl.java | 2 +- .../v1beta1/DataLabelingServiceGrpc.java | 106 +- .../clirr-ignored-differences.xml | 66 + .../v1beta1/AnnotatedDataset.java | 2 +- .../v1beta1/AnnotatedDatasetMetadata.java | 2 +- .../AnnotatedDatasetMetadataOrBuilder.java | 2 +- .../v1beta1/AnnotatedDatasetName.java | 2 +- .../v1beta1/AnnotatedDatasetOrBuilder.java | 2 +- .../datalabeling/v1beta1/Annotation.java | 2 +- .../v1beta1/AnnotationMetadata.java | 2 +- .../v1beta1/AnnotationMetadataOrBuilder.java | 2 +- .../v1beta1/AnnotationOrBuilder.java | 2 +- .../v1beta1/AnnotationOuterClass.java | 270 +-- .../v1beta1/AnnotationSentiment.java | 2 +- .../v1beta1/AnnotationSource.java | 5 +- .../datalabeling/v1beta1/AnnotationSpec.java | 26 +- .../v1beta1/AnnotationSpecOrBuilder.java | 6 +- .../v1beta1/AnnotationSpecSet.java | 153 +- .../v1beta1/AnnotationSpecSetName.java | 2 +- .../v1beta1/AnnotationSpecSetOrBuilder.java | 37 +- .../v1beta1/AnnotationSpecSetOuterClass.java | 33 +- .../datalabeling/v1beta1/AnnotationType.java | 20 +- .../datalabeling/v1beta1/AnnotationValue.java | 2 +- .../v1beta1/AnnotationValueOrBuilder.java | 2 +- .../cloud/datalabeling/v1beta1/Attempt.java | 236 +- .../v1beta1/AttemptOrBuilder.java | 52 +- .../datalabeling/v1beta1/BigQuerySource.java | 101 +- .../v1beta1/BigQuerySourceOrBuilder.java | 28 +- .../v1beta1/BoundingBoxEvaluationOptions.java | 26 +- ...BoundingBoxEvaluationOptionsOrBuilder.java | 8 +- .../datalabeling/v1beta1/BoundingPoly.java | 2 +- .../v1beta1/BoundingPolyConfig.java | 30 +- .../v1beta1/BoundingPolyConfigOrBuilder.java | 10 +- .../v1beta1/BoundingPolyOrBuilder.java | 2 +- .../v1beta1/ClassificationMetadata.java | 2 +- .../ClassificationMetadataOrBuilder.java | 2 +- .../v1beta1/ClassificationMetrics.java | 162 +- .../ClassificationMetricsOrBuilder.java | 33 +- .../datalabeling/v1beta1/ConfusionMatrix.java | 177 +- .../v1beta1/ConfusionMatrixOrBuilder.java | 2 +- .../CreateAnnotationSpecSetRequest.java | 78 +- ...eateAnnotationSpecSetRequestOrBuilder.java | 22 +- .../v1beta1/CreateDatasetRequest.java | 78 +- .../CreateDatasetRequestOrBuilder.java | 22 +- .../v1beta1/CreateEvaluationJobRequest.java | 106 +- .../CreateEvaluationJobRequestOrBuilder.java | 30 +- .../v1beta1/CreateInstructionMetadata.java | 2 +- .../CreateInstructionMetadataOrBuilder.java | 2 +- .../v1beta1/CreateInstructionRequest.java | 78 +- .../CreateInstructionRequestOrBuilder.java | 22 +- .../datalabeling/v1beta1/CsvInstruction.java | 4 +- .../v1beta1/CsvInstructionOrBuilder.java | 2 +- .../cloud/datalabeling/v1beta1/DataItem.java | 2 +- .../datalabeling/v1beta1/DataItemName.java | 2 +- .../v1beta1/DataItemOrBuilder.java | 2 +- .../DataLabelingServiceOuterClass.java | 709 +++--- .../datalabeling/v1beta1/DataPayloads.java | 2 +- .../cloud/datalabeling/v1beta1/DataType.java | 62 +- .../cloud/datalabeling/v1beta1/Dataset.java | 2 +- .../datalabeling/v1beta1/DatasetName.java | 2 +- .../v1beta1/DatasetOrBuilder.java | 2 +- .../v1beta1/DatasetOuterClass.java | 223 +- .../DeleteAnnotatedDatasetRequest.java | 30 +- ...eleteAnnotatedDatasetRequestOrBuilder.java | 10 +- .../DeleteAnnotationSpecSetRequest.java | 30 +- ...leteAnnotationSpecSetRequestOrBuilder.java | 10 +- .../v1beta1/DeleteDatasetRequest.java | 30 +- .../DeleteDatasetRequestOrBuilder.java | 10 +- .../v1beta1/DeleteEvaluationJobRequest.java | 44 +- .../DeleteEvaluationJobRequestOrBuilder.java | 14 +- .../v1beta1/DeleteInstructionRequest.java | 30 +- .../DeleteInstructionRequestOrBuilder.java | 10 +- .../datalabeling/v1beta1/Evaluation.java | 246 +- .../v1beta1/EvaluationConfig.java | 120 +- .../v1beta1/EvaluationConfigOrBuilder.java | 26 +- .../datalabeling/v1beta1/EvaluationJob.java | 633 +++-- .../v1beta1/EvaluationJobAlertConfig.java | 66 +- .../EvaluationJobAlertConfigOrBuilder.java | 13 +- .../v1beta1/EvaluationJobConfig.java | 1904 ++++++++------- .../v1beta1/EvaluationJobConfigOrBuilder.java | 380 ++- .../v1beta1/EvaluationJobName.java | 2 +- .../v1beta1/EvaluationJobOrBuilder.java | 131 +- .../v1beta1/EvaluationJobOuterClass.java | 122 +- .../v1beta1/EvaluationMetrics.java | 2 +- .../v1beta1/EvaluationMetricsOrBuilder.java | 2 +- .../datalabeling/v1beta1/EvaluationName.java | 2 +- .../v1beta1/EvaluationOrBuilder.java | 64 +- .../v1beta1/EvaluationOuterClass.java | 124 +- .../datalabeling/v1beta1/EventConfig.java | 41 +- .../v1beta1/EventConfigOrBuilder.java | 14 +- .../cloud/datalabeling/v1beta1/Example.java | 2 +- .../datalabeling/v1beta1/ExampleName.java | 2 +- .../v1beta1/ExampleOrBuilder.java | 2 +- .../v1beta1/ExportDataOperationMetadata.java | 16 +- .../ExportDataOperationMetadataOrBuilder.java | 6 +- .../v1beta1/ExportDataOperationResponse.java | 16 +- .../ExportDataOperationResponseOrBuilder.java | 6 +- .../v1beta1/ExportDataRequest.java | 120 +- .../v1beta1/ExportDataRequestOrBuilder.java | 34 +- .../datalabeling/v1beta1/GcsDestination.java | 2 +- .../v1beta1/GcsDestinationOrBuilder.java | 2 +- .../v1beta1/GcsFolderDestination.java | 2 +- .../GcsFolderDestinationOrBuilder.java | 2 +- .../cloud/datalabeling/v1beta1/GcsSource.java | 2 +- .../v1beta1/GcsSourceOrBuilder.java | 2 +- .../v1beta1/GetAnnotatedDatasetRequest.java | 30 +- .../GetAnnotatedDatasetRequestOrBuilder.java | 10 +- .../v1beta1/GetAnnotationSpecSetRequest.java | 30 +- .../GetAnnotationSpecSetRequestOrBuilder.java | 10 +- .../v1beta1/GetDataItemRequest.java | 30 +- .../v1beta1/GetDataItemRequestOrBuilder.java | 10 +- .../v1beta1/GetDatasetRequest.java | 30 +- .../v1beta1/GetDatasetRequestOrBuilder.java | 10 +- .../v1beta1/GetEvaluationJobRequest.java | 44 +- .../GetEvaluationJobRequestOrBuilder.java | 14 +- .../v1beta1/GetEvaluationRequest.java | 44 +- .../GetEvaluationRequestOrBuilder.java | 14 +- .../v1beta1/GetExampleRequest.java | 44 +- .../v1beta1/GetExampleRequestOrBuilder.java | 14 +- .../v1beta1/GetInstructionRequest.java | 30 +- .../GetInstructionRequestOrBuilder.java | 10 +- .../v1beta1/HumanAnnotationConfig.java | 225 +- .../HumanAnnotationConfigOrBuilder.java | 60 +- .../HumanAnnotationConfigOuterClass.java | 101 +- .../v1beta1/ImageBoundingPolyAnnotation.java | 2 +- .../ImageBoundingPolyAnnotationOrBuilder.java | 2 +- .../ImageClassificationAnnotation.java | 2 +- ...mageClassificationAnnotationOrBuilder.java | 2 +- .../v1beta1/ImageClassificationConfig.java | 45 +- .../ImageClassificationConfigOrBuilder.java | 14 +- .../datalabeling/v1beta1/ImagePayload.java | 2 +- .../v1beta1/ImagePayloadOrBuilder.java | 2 +- .../v1beta1/ImagePolylineAnnotation.java | 2 +- .../ImagePolylineAnnotationOrBuilder.java | 2 +- .../v1beta1/ImageSegmentationAnnotation.java | 2 +- .../ImageSegmentationAnnotationOrBuilder.java | 2 +- .../v1beta1/ImportDataOperationMetadata.java | 16 +- .../ImportDataOperationMetadataOrBuilder.java | 6 +- .../v1beta1/ImportDataOperationResponse.java | 2 +- .../ImportDataOperationResponseOrBuilder.java | 2 +- .../v1beta1/ImportDataRequest.java | 78 +- .../v1beta1/ImportDataRequestOrBuilder.java | 22 +- .../datalabeling/v1beta1/InputConfig.java | 232 +- .../v1beta1/InputConfigOrBuilder.java | 57 +- .../datalabeling/v1beta1/Instruction.java | 109 +- .../datalabeling/v1beta1/InstructionName.java | 2 +- .../v1beta1/InstructionOrBuilder.java | 26 +- .../v1beta1/InstructionOuterClass.java | 50 +- ...abelImageBoundingBoxOperationMetadata.java | 2 +- ...BoundingBoxOperationMetadataOrBuilder.java | 2 +- ...belImageBoundingPolyOperationMetadata.java | 2 +- ...oundingPolyOperationMetadataOrBuilder.java | 2 +- ...lImageClassificationOperationMetadata.java | 2 +- ...ssificationOperationMetadataOrBuilder.java | 2 +- ...eOrientedBoundingBoxOperationMetadata.java | 2 +- ...BoundingBoxOperationMetadataOrBuilder.java | 2 +- .../LabelImagePolylineOperationMetadata.java | 2 +- ...agePolylineOperationMetadataOrBuilder.java | 2 +- .../v1beta1/LabelImageRequest.java | 106 +- .../v1beta1/LabelImageRequestOrBuilder.java | 30 +- ...belImageSegmentationOperationMetadata.java | 2 +- ...egmentationOperationMetadataOrBuilder.java | 2 +- .../v1beta1/LabelOperationMetadata.java | 6 +- .../LabelOperationMetadataOrBuilder.java | 2 +- .../datalabeling/v1beta1/LabelStats.java | 2 +- .../v1beta1/LabelStatsOrBuilder.java | 2 +- ...elTextClassificationOperationMetadata.java | 2 +- ...ssificationOperationMetadataOrBuilder.java | 2 +- ...TextEntityExtractionOperationMetadata.java | 2 +- ...yExtractionOperationMetadataOrBuilder.java | 2 +- .../v1beta1/LabelTextRequest.java | 106 +- .../v1beta1/LabelTextRequestOrBuilder.java | 30 +- ...lVideoClassificationOperationMetadata.java | 2 +- ...ssificationOperationMetadataOrBuilder.java | 2 +- .../LabelVideoEventOperationMetadata.java | 2 +- ...lVideoEventOperationMetadataOrBuilder.java | 2 +- ...VideoObjectDetectionOperationMetadata.java | 2 +- ...ctDetectionOperationMetadataOrBuilder.java | 2 +- ...lVideoObjectTrackingOperationMetadata.java | 2 +- ...ectTrackingOperationMetadataOrBuilder.java | 2 +- .../v1beta1/LabelVideoRequest.java | 106 +- .../v1beta1/LabelVideoRequestOrBuilder.java | 30 +- .../v1beta1/ListAnnotatedDatasetsRequest.java | 108 +- ...ListAnnotatedDatasetsRequestOrBuilder.java | 32 +- .../ListAnnotatedDatasetsResponse.java | 2 +- ...istAnnotatedDatasetsResponseOrBuilder.java | 2 +- .../ListAnnotationSpecSetsRequest.java | 108 +- ...istAnnotationSpecSetsRequestOrBuilder.java | 32 +- .../ListAnnotationSpecSetsResponse.java | 2 +- ...stAnnotationSpecSetsResponseOrBuilder.java | 2 +- .../v1beta1/ListDataItemsRequest.java | 108 +- .../ListDataItemsRequestOrBuilder.java | 32 +- .../v1beta1/ListDataItemsResponse.java | 2 +- .../ListDataItemsResponseOrBuilder.java | 2 +- .../v1beta1/ListDatasetsRequest.java | 108 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 32 +- .../v1beta1/ListDatasetsResponse.java | 2 +- .../ListDatasetsResponseOrBuilder.java | 2 +- .../v1beta1/ListEvaluationJobsRequest.java | 227 +- .../ListEvaluationJobsRequestOrBuilder.java | 66 +- .../v1beta1/ListEvaluationJobsResponse.java | 2 +- .../ListEvaluationJobsResponseOrBuilder.java | 2 +- .../v1beta1/ListExamplesRequest.java | 108 +- .../v1beta1/ListExamplesRequestOrBuilder.java | 32 +- .../v1beta1/ListExamplesResponse.java | 2 +- .../ListExamplesResponseOrBuilder.java | 2 +- .../v1beta1/ListInstructionsRequest.java | 108 +- .../ListInstructionsRequestOrBuilder.java | 32 +- .../v1beta1/ListInstructionsResponse.java | 2 +- .../ListInstructionsResponseOrBuilder.java | 2 +- .../v1beta1/NormalizedBoundingPoly.java | 2 +- .../NormalizedBoundingPolyOrBuilder.java | 2 +- .../v1beta1/NormalizedPolyline.java | 2 +- .../v1beta1/NormalizedPolylineOrBuilder.java | 2 +- .../v1beta1/NormalizedVertex.java | 2 +- .../v1beta1/NormalizedVertexOrBuilder.java | 2 +- .../v1beta1/ObjectDetectionConfig.java | 24 +- .../ObjectDetectionConfigOrBuilder.java | 8 +- .../v1beta1/ObjectDetectionMetrics.java | 22 +- .../ObjectDetectionMetricsOrBuilder.java | 2 +- .../v1beta1/ObjectTrackingConfig.java | 16 +- .../ObjectTrackingConfigOrBuilder.java | 6 +- .../v1beta1/ObjectTrackingFrame.java | 2 +- .../v1beta1/ObjectTrackingFrameOrBuilder.java | 2 +- .../datalabeling/v1beta1/Operations.java | 202 +- .../v1beta1/OperatorMetadata.java | 2 +- .../v1beta1/OperatorMetadataOrBuilder.java | 2 +- .../datalabeling/v1beta1/OutputConfig.java | 2 +- .../v1beta1/OutputConfigOrBuilder.java | 2 +- .../v1beta1/PauseEvaluationJobRequest.java | 44 +- .../PauseEvaluationJobRequestOrBuilder.java | 14 +- .../datalabeling/v1beta1/PdfInstruction.java | 2 +- .../v1beta1/PdfInstructionOrBuilder.java | 2 +- .../cloud/datalabeling/v1beta1/Polyline.java | 2 +- .../datalabeling/v1beta1/PolylineConfig.java | 30 +- .../v1beta1/PolylineConfigOrBuilder.java | 10 +- .../v1beta1/PolylineOrBuilder.java | 2 +- .../cloud/datalabeling/v1beta1/PrCurve.java | 244 +- .../v1beta1/PrCurveOrBuilder.java | 34 +- .../datalabeling/v1beta1/ProjectName.java | 2 +- .../v1beta1/ResumeEvaluationJobRequest.java | 44 +- .../ResumeEvaluationJobRequestOrBuilder.java | 14 +- .../v1beta1/SearchEvaluationsRequest.java | 395 +++- .../SearchEvaluationsRequestOrBuilder.java | 114 +- .../v1beta1/SearchEvaluationsResponse.java | 48 +- .../SearchEvaluationsResponseOrBuilder.java | 12 +- .../SearchExampleComparisonsRequest.java | 157 +- ...rchExampleComparisonsRequestOrBuilder.java | 46 +- .../SearchExampleComparisonsResponse.java | 442 +++- ...chExampleComparisonsResponseOrBuilder.java | 32 +- .../v1beta1/SegmentationConfig.java | 16 +- .../v1beta1/SegmentationConfigOrBuilder.java | 6 +- .../datalabeling/v1beta1/SentimentConfig.java | 2 +- .../v1beta1/SentimentConfigOrBuilder.java | 2 +- .../v1beta1/SequentialSegment.java | 2 +- .../v1beta1/SequentialSegmentOrBuilder.java | 2 +- .../v1beta1/StringAggregationType.java | 2 +- .../v1beta1/TextClassificationAnnotation.java | 2 +- ...TextClassificationAnnotationOrBuilder.java | 2 +- .../v1beta1/TextClassificationConfig.java | 72 +- .../TextClassificationConfigOrBuilder.java | 20 +- .../TextEntityExtractionAnnotation.java | 2 +- ...xtEntityExtractionAnnotationOrBuilder.java | 2 +- .../v1beta1/TextEntityExtractionConfig.java | 16 +- .../TextEntityExtractionConfigOrBuilder.java | 6 +- .../datalabeling/v1beta1/TextMetadata.java | 2 +- .../v1beta1/TextMetadataOrBuilder.java | 2 +- .../datalabeling/v1beta1/TextPayload.java | 2 +- .../v1beta1/TextPayloadOrBuilder.java | 2 +- .../datalabeling/v1beta1/TimeSegment.java | 2 +- .../v1beta1/TimeSegmentOrBuilder.java | 2 +- .../v1beta1/UpdateEvaluationJobRequest.java | 182 +- .../UpdateEvaluationJobRequestOrBuilder.java | 47 +- .../cloud/datalabeling/v1beta1/Vertex.java | 2 +- .../datalabeling/v1beta1/VertexOrBuilder.java | 2 +- .../VideoClassificationAnnotation.java | 2 +- ...ideoClassificationAnnotationOrBuilder.java | 2 +- .../v1beta1/VideoClassificationConfig.java | 84 +- .../VideoClassificationConfigOrBuilder.java | 14 +- .../v1beta1/VideoEventAnnotation.java | 2 +- .../VideoEventAnnotationOrBuilder.java | 2 +- .../VideoObjectTrackingAnnotation.java | 2 +- ...ideoObjectTrackingAnnotationOrBuilder.java | 2 +- .../datalabeling/v1beta1/VideoPayload.java | 2 +- .../v1beta1/VideoPayloadOrBuilder.java | 2 +- .../datalabeling/v1beta1/VideoThumbnail.java | 2 +- .../v1beta1/VideoThumbnailOrBuilder.java | 2 +- .../datalabeling/v1beta1/annotation.proto | 14 +- .../v1beta1/annotation_spec_set.proto | 33 +- .../v1beta1/data_labeling_service.proto | 632 +++-- .../cloud/datalabeling/v1beta1/dataset.proto | 59 +- .../datalabeling/v1beta1/evaluation.proto | 114 +- .../datalabeling/v1beta1/evaluation_job.proto | 217 +- .../v1beta1/human_annotation_config.proto | 61 +- .../datalabeling/v1beta1/instruction.proto | 18 +- .../datalabeling/v1beta1/operations.proto | 18 +- renovate.json | 6 + synth.metadata | 48 +- 309 files changed, 10804 insertions(+), 6155 deletions(-) create mode 100644 google-cloud-datalabeling/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-datalabeling-v1beta1/clirr-ignored-differences.xml diff --git a/google-cloud-datalabeling-bom/pom.xml b/google-cloud-datalabeling-bom/pom.xml index b7f5cdd7..f1cccd1a 100644 --- a/google-cloud-datalabeling-bom/pom.xml +++ b/google-cloud-datalabeling-bom/pom.xml @@ -11,7 +11,7 @@ 0.4.0 - Google Cloud datalabeling BOM + Google Cloud Data Labeling BOM https://github.com/googleapis/java-datalabeling BOM for Google Cloud Data Labeling diff --git a/google-cloud-datalabeling/clirr-ignored-differences.xml b/google-cloud-datalabeling/clirr-ignored-differences.xml new file mode 100644 index 00000000..b35e3cd5 --- /dev/null +++ b/google-cloud-datalabeling/clirr-ignored-differences.xml @@ -0,0 +1,15 @@ + + + + + + 7002 + com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient + java.lang.String format*Name(*) + + + 7002 + com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient + java.lang.String parse*Name(*) + + diff --git a/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 index e7dc06e4..8f896245 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStub; import com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -50,9 +49,9 @@ *
  * 
  * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Dataset dataset = Dataset.newBuilder().build();
- *   Dataset response = dataLabelingServiceClient.createDataset(formattedParent, dataset);
+ *   Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
  * }
  * 
  * 
@@ -115,387 +114,6 @@ public class DataLabelingServiceClient implements BackgroundResource { private final DataLabelingServiceStub stub; private final OperationsClient operationsClient; - private static final PathTemplate ANNOTATED_DATASET_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}"); - - private static final PathTemplate ANNOTATION_SPEC_SET_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/annotationSpecSets/{annotation_spec_set}"); - - private static final PathTemplate DATA_ITEM_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/dataItems/{data_item}"); - - private static final PathTemplate DATASET_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/datasets/{dataset}"); - - private static final PathTemplate EVALUATION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/evaluations/{evaluation}"); - - private static final PathTemplate EVALUATION_JOB_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/evaluationJobs/{evaluation_job}"); - - private static final PathTemplate EXAMPLE_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}"); - - private static final PathTemplate INSTRUCTION_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/instructions/{instruction}"); - - private static final PathTemplate PROJECT_PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - - /** - * Formats a string containing the fully-qualified path to represent a annotated_dataset resource. - * - * @deprecated Use the {@link AnnotatedDatasetName} class instead. - */ - @Deprecated - public static final String formatAnnotatedDatasetName( - String project, String dataset, String annotatedDataset) { - return ANNOTATED_DATASET_PATH_TEMPLATE.instantiate( - "project", project, - "dataset", dataset, - "annotated_dataset", annotatedDataset); - } - - /** - * Formats a string containing the fully-qualified path to represent a annotation_spec_set - * resource. - * - * @deprecated Use the {@link AnnotationSpecSetName} class instead. - */ - @Deprecated - public static final String formatAnnotationSpecSetName(String project, String annotationSpecSet) { - return ANNOTATION_SPEC_SET_PATH_TEMPLATE.instantiate( - "project", project, - "annotation_spec_set", annotationSpecSet); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_item resource. - * - * @deprecated Use the {@link DataItemName} class instead. - */ - @Deprecated - public static final String formatDataItemName(String project, String dataset, String dataItem) { - return DATA_ITEM_PATH_TEMPLATE.instantiate( - "project", project, - "dataset", dataset, - "data_item", dataItem); - } - - /** - * Formats a string containing the fully-qualified path to represent a dataset resource. - * - * @deprecated Use the {@link DatasetName} class instead. - */ - @Deprecated - public static final String formatDatasetName(String project, String dataset) { - return DATASET_PATH_TEMPLATE.instantiate( - "project", project, - "dataset", dataset); - } - - /** - * Formats a string containing the fully-qualified path to represent a evaluation resource. - * - * @deprecated Use the {@link EvaluationName} class instead. - */ - @Deprecated - public static final String formatEvaluationName( - String project, String dataset, String evaluation) { - return EVALUATION_PATH_TEMPLATE.instantiate( - "project", project, - "dataset", dataset, - "evaluation", evaluation); - } - - /** - * Formats a string containing the fully-qualified path to represent a evaluation_job resource. - * - * @deprecated Use the {@link EvaluationJobName} class instead. - */ - @Deprecated - public static final String formatEvaluationJobName(String project, String evaluationJob) { - return EVALUATION_JOB_PATH_TEMPLATE.instantiate( - "project", project, - "evaluation_job", evaluationJob); - } - - /** - * Formats a string containing the fully-qualified path to represent a example resource. - * - * @deprecated Use the {@link ExampleName} class instead. - */ - @Deprecated - public static final String formatExampleName( - String project, String dataset, String annotatedDataset, String example) { - return EXAMPLE_PATH_TEMPLATE.instantiate( - "project", project, - "dataset", dataset, - "annotated_dataset", annotatedDataset, - "example", example); - } - - /** - * Formats a string containing the fully-qualified path to represent a instruction resource. - * - * @deprecated Use the {@link InstructionName} class instead. - */ - @Deprecated - public static final String formatInstructionName(String project, String instruction) { - return INSTRUCTION_PATH_TEMPLATE.instantiate( - "project", project, - "instruction", instruction); - } - - /** - * Formats a string containing the fully-qualified path to represent a project resource. - * - * @deprecated Use the {@link ProjectName} class instead. - */ - @Deprecated - public static final String formatProjectName(String project) { - return PROJECT_PATH_TEMPLATE.instantiate("project", project); - } - - /** - * Parses the project from the given fully-qualified path which represents a annotated_dataset - * resource. - * - * @deprecated Use the {@link AnnotatedDatasetName} class instead. - */ - @Deprecated - public static final String parseProjectFromAnnotatedDatasetName(String annotatedDatasetName) { - return ANNOTATED_DATASET_PATH_TEMPLATE.parse(annotatedDatasetName).get("project"); - } - - /** - * Parses the dataset from the given fully-qualified path which represents a annotated_dataset - * resource. - * - * @deprecated Use the {@link AnnotatedDatasetName} class instead. - */ - @Deprecated - public static final String parseDatasetFromAnnotatedDatasetName(String annotatedDatasetName) { - return ANNOTATED_DATASET_PATH_TEMPLATE.parse(annotatedDatasetName).get("dataset"); - } - - /** - * Parses the annotated_dataset from the given fully-qualified path which represents a - * annotated_dataset resource. - * - * @deprecated Use the {@link AnnotatedDatasetName} class instead. - */ - @Deprecated - public static final String parseAnnotatedDatasetFromAnnotatedDatasetName( - String annotatedDatasetName) { - return ANNOTATED_DATASET_PATH_TEMPLATE.parse(annotatedDatasetName).get("annotated_dataset"); - } - - /** - * Parses the project from the given fully-qualified path which represents a annotation_spec_set - * resource. - * - * @deprecated Use the {@link AnnotationSpecSetName} class instead. - */ - @Deprecated - public static final String parseProjectFromAnnotationSpecSetName(String annotationSpecSetName) { - return ANNOTATION_SPEC_SET_PATH_TEMPLATE.parse(annotationSpecSetName).get("project"); - } - - /** - * Parses the annotation_spec_set from the given fully-qualified path which represents a - * annotation_spec_set resource. - * - * @deprecated Use the {@link AnnotationSpecSetName} class instead. - */ - @Deprecated - public static final String parseAnnotationSpecSetFromAnnotationSpecSetName( - String annotationSpecSetName) { - return ANNOTATION_SPEC_SET_PATH_TEMPLATE - .parse(annotationSpecSetName) - .get("annotation_spec_set"); - } - - /** - * Parses the project from the given fully-qualified path which represents a data_item resource. - * - * @deprecated Use the {@link DataItemName} class instead. - */ - @Deprecated - public static final String parseProjectFromDataItemName(String dataItemName) { - return DATA_ITEM_PATH_TEMPLATE.parse(dataItemName).get("project"); - } - - /** - * Parses the dataset from the given fully-qualified path which represents a data_item resource. - * - * @deprecated Use the {@link DataItemName} class instead. - */ - @Deprecated - public static final String parseDatasetFromDataItemName(String dataItemName) { - return DATA_ITEM_PATH_TEMPLATE.parse(dataItemName).get("dataset"); - } - - /** - * Parses the data_item from the given fully-qualified path which represents a data_item resource. - * - * @deprecated Use the {@link DataItemName} class instead. - */ - @Deprecated - public static final String parseDataItemFromDataItemName(String dataItemName) { - return DATA_ITEM_PATH_TEMPLATE.parse(dataItemName).get("data_item"); - } - - /** - * Parses the project from the given fully-qualified path which represents a dataset resource. - * - * @deprecated Use the {@link DatasetName} class instead. - */ - @Deprecated - public static final String parseProjectFromDatasetName(String datasetName) { - return DATASET_PATH_TEMPLATE.parse(datasetName).get("project"); - } - - /** - * Parses the dataset from the given fully-qualified path which represents a dataset resource. - * - * @deprecated Use the {@link DatasetName} class instead. - */ - @Deprecated - public static final String parseDatasetFromDatasetName(String datasetName) { - return DATASET_PATH_TEMPLATE.parse(datasetName).get("dataset"); - } - - /** - * Parses the project from the given fully-qualified path which represents a evaluation resource. - * - * @deprecated Use the {@link EvaluationName} class instead. - */ - @Deprecated - public static final String parseProjectFromEvaluationName(String evaluationName) { - return EVALUATION_PATH_TEMPLATE.parse(evaluationName).get("project"); - } - - /** - * Parses the dataset from the given fully-qualified path which represents a evaluation resource. - * - * @deprecated Use the {@link EvaluationName} class instead. - */ - @Deprecated - public static final String parseDatasetFromEvaluationName(String evaluationName) { - return EVALUATION_PATH_TEMPLATE.parse(evaluationName).get("dataset"); - } - - /** - * Parses the evaluation from the given fully-qualified path which represents a evaluation - * resource. - * - * @deprecated Use the {@link EvaluationName} class instead. - */ - @Deprecated - public static final String parseEvaluationFromEvaluationName(String evaluationName) { - return EVALUATION_PATH_TEMPLATE.parse(evaluationName).get("evaluation"); - } - - /** - * Parses the project from the given fully-qualified path which represents a evaluation_job - * resource. - * - * @deprecated Use the {@link EvaluationJobName} class instead. - */ - @Deprecated - public static final String parseProjectFromEvaluationJobName(String evaluationJobName) { - return EVALUATION_JOB_PATH_TEMPLATE.parse(evaluationJobName).get("project"); - } - - /** - * Parses the evaluation_job from the given fully-qualified path which represents a evaluation_job - * resource. - * - * @deprecated Use the {@link EvaluationJobName} class instead. - */ - @Deprecated - public static final String parseEvaluationJobFromEvaluationJobName(String evaluationJobName) { - return EVALUATION_JOB_PATH_TEMPLATE.parse(evaluationJobName).get("evaluation_job"); - } - - /** - * Parses the project from the given fully-qualified path which represents a example resource. - * - * @deprecated Use the {@link ExampleName} class instead. - */ - @Deprecated - public static final String parseProjectFromExampleName(String exampleName) { - return EXAMPLE_PATH_TEMPLATE.parse(exampleName).get("project"); - } - - /** - * Parses the dataset from the given fully-qualified path which represents a example resource. - * - * @deprecated Use the {@link ExampleName} class instead. - */ - @Deprecated - public static final String parseDatasetFromExampleName(String exampleName) { - return EXAMPLE_PATH_TEMPLATE.parse(exampleName).get("dataset"); - } - - /** - * Parses the annotated_dataset from the given fully-qualified path which represents a example - * resource. - * - * @deprecated Use the {@link ExampleName} class instead. - */ - @Deprecated - public static final String parseAnnotatedDatasetFromExampleName(String exampleName) { - return EXAMPLE_PATH_TEMPLATE.parse(exampleName).get("annotated_dataset"); - } - - /** - * Parses the example from the given fully-qualified path which represents a example resource. - * - * @deprecated Use the {@link ExampleName} class instead. - */ - @Deprecated - public static final String parseExampleFromExampleName(String exampleName) { - return EXAMPLE_PATH_TEMPLATE.parse(exampleName).get("example"); - } - - /** - * Parses the project from the given fully-qualified path which represents a instruction resource. - * - * @deprecated Use the {@link InstructionName} class instead. - */ - @Deprecated - public static final String parseProjectFromInstructionName(String instructionName) { - return INSTRUCTION_PATH_TEMPLATE.parse(instructionName).get("project"); - } - - /** - * Parses the instruction from the given fully-qualified path which represents a instruction - * resource. - * - * @deprecated Use the {@link InstructionName} class instead. - */ - @Deprecated - public static final String parseInstructionFromInstructionName(String instructionName) { - return INSTRUCTION_PATH_TEMPLATE.parse(instructionName).get("instruction"); - } - - /** - * Parses the project from the given fully-qualified path which represents a project resource. - * - * @deprecated Use the {@link ProjectName} class instead. - */ - @Deprecated - public static final String parseProjectFromProjectName(String projectName) { - return PROJECT_PATH_TEMPLATE.parse(projectName).get("project"); - } - /** Constructs an instance of DataLabelingServiceClient with default settings. */ public static final DataLabelingServiceClient create() throws IOException { return create(DataLabelingServiceSettings.newBuilder().build()); @@ -564,9 +182,36 @@ public final OperationsClient getOperationsClient() { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Dataset dataset = Dataset.newBuilder().build();
+   *   Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
+   * }
+   * 
+ * + * @param parent Required. Dataset resource parent, format: projects/{project_id} + * @param dataset Required. The dataset to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset createDataset(ProjectName parent, Dataset dataset) { + CreateDatasetRequest request = + CreateDatasetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataset(dataset) + .build(); + return createDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates dataset. If success return a Dataset resource. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Dataset dataset = Dataset.newBuilder().build();
-   *   Dataset response = dataLabelingServiceClient.createDataset(formattedParent, dataset);
+   *   Dataset response = dataLabelingServiceClient.createDataset(parent.toString(), dataset);
    * }
    * 
* @@ -575,7 +220,6 @@ public final OperationsClient getOperationsClient() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Dataset createDataset(String parent, Dataset dataset) { - PROJECT_PATH_TEMPLATE.validate(parent, "createDataset"); CreateDatasetRequest request = CreateDatasetRequest.newBuilder().setParent(parent).setDataset(dataset).build(); return createDataset(request); @@ -589,10 +233,10 @@ public final Dataset createDataset(String parent, Dataset dataset) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Dataset dataset = Dataset.newBuilder().build();
    *   CreateDatasetRequest request = CreateDatasetRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setDataset(dataset)
    *     .build();
    *   Dataset response = dataLabelingServiceClient.createDataset(request);
@@ -614,10 +258,10 @@ public final Dataset createDataset(CreateDatasetRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Dataset dataset = Dataset.newBuilder().build();
    *   CreateDatasetRequest request = CreateDatasetRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setDataset(dataset)
    *     .build();
    *   ApiFuture<Dataset> future = dataLabelingServiceClient.createDatasetCallable().futureCall(request);
@@ -638,8 +282,31 @@ public final UnaryCallable createDatasetCallable(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   Dataset response = dataLabelingServiceClient.getDataset(formattedName);
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   Dataset response = dataLabelingServiceClient.getDataset(name);
+   * }
+   * 
+ * + * @param name Required. Dataset resource name, format: + * projects/{project_id}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset getDataset(DatasetName name) { + GetDatasetRequest request = + GetDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets dataset by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   Dataset response = dataLabelingServiceClient.getDataset(name.toString());
    * }
    * 
* @@ -648,7 +315,6 @@ public final UnaryCallable createDatasetCallable( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Dataset getDataset(String name) { - DATASET_PATH_TEMPLATE.validate(name, "getDataset"); GetDatasetRequest request = GetDatasetRequest.newBuilder().setName(name).build(); return getDataset(request); } @@ -661,9 +327,9 @@ public final Dataset getDataset(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   GetDatasetRequest request = GetDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   Dataset response = dataLabelingServiceClient.getDataset(request);
    * }
@@ -684,9 +350,9 @@ public final Dataset getDataset(GetDatasetRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   GetDatasetRequest request = GetDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Dataset> future = dataLabelingServiceClient.getDatasetCallable().futureCall(request);
    *   // Do something
@@ -706,9 +372,38 @@ public final UnaryCallable getDatasetCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Dataset element : dataLabelingServiceClient.listDatasets(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Dataset resource parent, format: projects/{project_id} + * @param filter Optional. Filter on dataset is not supported at this moment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetsPagedResponse listDatasets(ProjectName parent, String filter) { + ListDatasetsRequest request = + ListDatasetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listDatasets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists datasets under a project. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   String filter = "";
-   *   for (Dataset element : dataLabelingServiceClient.listDatasets(formattedParent, filter).iterateAll()) {
+   *   for (Dataset element : dataLabelingServiceClient.listDatasets(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -719,7 +414,6 @@ public final UnaryCallable getDatasetCallable() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListDatasetsPagedResponse listDatasets(String parent, String filter) {
-    PROJECT_PATH_TEMPLATE.validate(parent, "listDatasets");
     ListDatasetsRequest request =
         ListDatasetsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listDatasets(request);
@@ -733,9 +427,9 @@ public final ListDatasetsPagedResponse listDatasets(String parent, String filter
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListDatasetsRequest request = ListDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (Dataset element : dataLabelingServiceClient.listDatasets(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -758,9 +452,9 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListDatasetsRequest request = ListDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListDatasetsPagedResponse> future = dataLabelingServiceClient.listDatasetsPagedCallable().futureCall(request);
    *   // Do something
@@ -783,9 +477,9 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request)
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListDatasetsRequest request = ListDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListDatasetsResponse response = dataLabelingServiceClient.listDatasetsCallable().call(request);
@@ -814,8 +508,31 @@ public final UnaryCallable listDatase
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   dataLabelingServiceClient.deleteDataset(formattedName);
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   dataLabelingServiceClient.deleteDataset(name);
+   * }
+   * 
+ * + * @param name Required. Dataset resource name, format: + * projects/{project_id}/datasets/{dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataset(DatasetName name) { + DeleteDatasetRequest request = + DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a dataset by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   dataLabelingServiceClient.deleteDataset(name.toString());
    * }
    * 
* @@ -824,7 +541,6 @@ public final UnaryCallable listDatase * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDataset(String name) { - DATASET_PATH_TEMPLATE.validate(name, "deleteDataset"); DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name).build(); deleteDataset(request); } @@ -837,9 +553,9 @@ public final void deleteDataset(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.deleteDataset(request);
    * }
@@ -860,9 +576,9 @@ public final void deleteDataset(DeleteDatasetRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.deleteDatasetCallable().futureCall(request);
    *   // Do something
@@ -885,9 +601,43 @@ public final UnaryCallable deleteDatasetCallable()
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   InputConfig inputConfig = InputConfig.newBuilder().build();
+   *   ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(name, inputConfig).get();
+   * }
+   * 
+ * + * @param name Required. Dataset resource name, format: + * projects/{project_id}/datasets/{dataset_id} + * @param inputConfig Required. Specify the input source of the data. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + importDataAsync(DatasetName name, InputConfig inputConfig) { + ImportDataRequest request = + ImportDataRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setInputConfig(inputConfig) + .build(); + return importDataAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
-   *   ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(formattedName, inputConfig).get();
+   *   ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(name.toString(), inputConfig).get();
    * }
    * 
* @@ -900,7 +650,6 @@ public final UnaryCallable deleteDatasetCallable() "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture importDataAsync(String name, InputConfig inputConfig) { - DATASET_PATH_TEMPLATE.validate(name, "importData"); ImportDataRequest request = ImportDataRequest.newBuilder().setName(name).setInputConfig(inputConfig).build(); return importDataAsync(request); @@ -917,10 +666,10 @@ public final UnaryCallable deleteDatasetCallable() * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
    *   ImportDataRequest request = ImportDataRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .setInputConfig(inputConfig)
    *     .build();
    *   ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(request).get();
@@ -948,10 +697,10 @@ public final UnaryCallable deleteDatasetCallable()
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
    *   ImportDataRequest request = ImportDataRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .setInputConfig(inputConfig)
    *     .build();
    *   OperationFuture<ImportDataOperationResponse, ImportDataOperationMetadata> future = dataLabelingServiceClient.importDataOperationCallable().futureCall(request);
@@ -978,10 +727,10 @@ public final UnaryCallable deleteDatasetCallable()
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
    *   InputConfig inputConfig = InputConfig.newBuilder().build();
    *   ImportDataRequest request = ImportDataRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .setInputConfig(inputConfig)
    *     .build();
    *   ApiFuture<Operation> future = dataLabelingServiceClient.importDataCallable().futureCall(request);
@@ -1002,11 +751,54 @@ public final UnaryCallable importDataCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   String annotatedDataset = "";
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   String filter = "";
+   *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
+   *   ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name, annotatedDataset, filter, outputConfig).get();
+   * }
+   * 
+ * + * @param name Required. Dataset resource name, format: + * projects/{project_id}/datasets/{dataset_id} + * @param annotatedDataset Required. Annotated dataset resource name. DataItem in Dataset and + * their annotations in specified annotated dataset will be exported. It's in format of + * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} + * @param filter Optional. Filter is not supported at this moment. + * @param outputConfig Required. Specify the output destination. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + exportDataAsync( + DatasetName name, + AnnotatedDatasetName annotatedDataset, + String filter, + OutputConfig outputConfig) { + ExportDataRequest request = + ExportDataRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setAnnotatedDataset(annotatedDataset == null ? null : annotatedDataset.toString()) + .setFilter(filter) + .setOutputConfig(outputConfig) + .build(); + return exportDataAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports data and annotations from dataset. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   String filter = "";
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
-   *   ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(formattedName, annotatedDataset, filter, outputConfig).get();
+   *   ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name.toString(), annotatedDataset.toString(), filter, outputConfig).get();
    * }
    * 
* @@ -1024,7 +816,6 @@ public final UnaryCallable importDataCallable() { public final OperationFuture exportDataAsync( String name, String annotatedDataset, String filter, OutputConfig outputConfig) { - DATASET_PATH_TEMPLATE.validate(name, "exportData"); ExportDataRequest request = ExportDataRequest.newBuilder() .setName(name) @@ -1043,12 +834,12 @@ public final UnaryCallable importDataCallable() { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   String annotatedDataset = "";
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
    *   ExportDataRequest request = ExportDataRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setAnnotatedDataset(annotatedDataset)
+   *     .setName(name.toString())
+   *     .setAnnotatedDataset(annotatedDataset.toString())
    *     .setOutputConfig(outputConfig)
    *     .build();
    *   ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(request).get();
@@ -1073,12 +864,12 @@ public final UnaryCallable importDataCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   String annotatedDataset = "";
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
    *   ExportDataRequest request = ExportDataRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setAnnotatedDataset(annotatedDataset)
+   *     .setName(name.toString())
+   *     .setAnnotatedDataset(annotatedDataset.toString())
    *     .setOutputConfig(outputConfig)
    *     .build();
    *   OperationFuture<ExportDataOperationResponse, ExportDataOperationMetadata> future = dataLabelingServiceClient.exportDataOperationCallable().futureCall(request);
@@ -1102,12 +893,12 @@ public final UnaryCallable importDataCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
-   *   String annotatedDataset = "";
+   *   DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   OutputConfig outputConfig = OutputConfig.newBuilder().build();
    *   ExportDataRequest request = ExportDataRequest.newBuilder()
-   *     .setName(formattedName)
-   *     .setAnnotatedDataset(annotatedDataset)
+   *     .setName(name.toString())
+   *     .setAnnotatedDataset(annotatedDataset.toString())
    *     .setOutputConfig(outputConfig)
    *     .build();
    *   ApiFuture<Operation> future = dataLabelingServiceClient.exportDataCallable().futureCall(request);
@@ -1129,8 +920,32 @@ public final UnaryCallable exportDataCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDataItemName("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
-   *   DataItem response = dataLabelingServiceClient.getDataItem(formattedName);
+   *   DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
+   *   DataItem response = dataLabelingServiceClient.getDataItem(name);
+   * }
+   * 
+ * + * @param name Required. The name of the data item to get, format: + * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataItem getDataItem(DataItemName name) { + GetDataItemRequest request = + GetDataItemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataItem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a data item in a dataset by resource name. This API can be called after data are imported + * into dataset. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
+   *   DataItem response = dataLabelingServiceClient.getDataItem(name.toString());
    * }
    * 
* @@ -1139,7 +954,6 @@ public final UnaryCallable exportDataCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataItem getDataItem(String name) { - DATA_ITEM_PATH_TEMPLATE.validate(name, "getDataItem"); GetDataItemRequest request = GetDataItemRequest.newBuilder().setName(name).build(); return getDataItem(request); } @@ -1153,9 +967,9 @@ public final DataItem getDataItem(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDataItemName("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
+   *   DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
    *   GetDataItemRequest request = GetDataItemRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   DataItem response = dataLabelingServiceClient.getDataItem(request);
    * }
@@ -1177,9 +991,9 @@ public final DataItem getDataItem(GetDataItemRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatDataItemName("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
+   *   DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]");
    *   GetDataItemRequest request = GetDataItemRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<DataItem> future = dataLabelingServiceClient.getDataItemCallable().futureCall(request);
    *   // Do something
@@ -1200,9 +1014,40 @@ public final UnaryCallable getDataItemCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   String filter = "";
+   *   for (DataItem element : dataLabelingServiceClient.listDataItems(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Name of the dataset to list data items, format: + * projects/{project_id}/datasets/{dataset_id} + * @param filter Optional. Filter is not supported at this moment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataItemsPagedResponse listDataItems(DatasetName parent, String filter) { + ListDataItemsRequest request = + ListDataItemsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listDataItems(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists data items in a dataset. This API can be called after data are imported into dataset. + * Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   String filter = "";
-   *   for (DataItem element : dataLabelingServiceClient.listDataItems(formattedParent, filter).iterateAll()) {
+   *   for (DataItem element : dataLabelingServiceClient.listDataItems(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -1214,7 +1059,6 @@ public final UnaryCallable getDataItemCallable() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListDataItemsPagedResponse listDataItems(String parent, String filter) {
-    DATASET_PATH_TEMPLATE.validate(parent, "listDataItems");
     ListDataItemsRequest request =
         ListDataItemsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listDataItems(request);
@@ -1229,9 +1073,9 @@ public final ListDataItemsPagedResponse listDataItems(String parent, String filt
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListDataItemsRequest request = ListDataItemsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (DataItem element : dataLabelingServiceClient.listDataItems(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -1255,9 +1099,9 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListDataItemsRequest request = ListDataItemsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListDataItemsPagedResponse> future = dataLabelingServiceClient.listDataItemsPagedCallable().futureCall(request);
    *   // Do something
@@ -1281,9 +1125,9 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListDataItemsRequest request = ListDataItemsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListDataItemsResponse response = dataLabelingServiceClient.listDataItemsCallable().call(request);
@@ -1312,8 +1156,33 @@ public final UnaryCallable listData
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
-   *   AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(formattedName);
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(name);
+   * }
+   * 
+ * + * @param name Required. Name of the annotated dataset to get, format: + * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AnnotatedDataset getAnnotatedDataset(AnnotatedDatasetName name) { + GetAnnotatedDatasetRequest request = + GetAnnotatedDatasetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAnnotatedDataset(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an annotated dataset by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(name.toString());
    * }
    * 
* @@ -1322,7 +1191,6 @@ public final UnaryCallable listData * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotatedDataset getAnnotatedDataset(String name) { - ANNOTATED_DATASET_PATH_TEMPLATE.validate(name, "getAnnotatedDataset"); GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder().setName(name).build(); return getAnnotatedDataset(request); @@ -1336,9 +1204,9 @@ public final AnnotatedDataset getAnnotatedDataset(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   AnnotatedDataset response = dataLabelingServiceClient.getAnnotatedDataset(request);
    * }
@@ -1359,9 +1227,9 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   GetAnnotatedDatasetRequest request = GetAnnotatedDatasetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<AnnotatedDataset> future = dataLabelingServiceClient.getAnnotatedDatasetCallable().futureCall(request);
    *   // Do something
@@ -1382,9 +1250,40 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   String filter = "";
+   *   for (AnnotatedDataset element : dataLabelingServiceClient.listAnnotatedDatasets(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Name of the dataset to list annotated datasets, format: + * projects/{project_id}/datasets/{dataset_id} + * @param filter Optional. Filter is not supported at this moment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( + DatasetName parent, String filter) { + ListAnnotatedDatasetsRequest request = + ListAnnotatedDatasetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listAnnotatedDatasets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists annotated datasets for a dataset. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   String filter = "";
-   *   for (AnnotatedDataset element : dataLabelingServiceClient.listAnnotatedDatasets(formattedParent, filter).iterateAll()) {
+   *   for (AnnotatedDataset element : dataLabelingServiceClient.listAnnotatedDatasets(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -1397,7 +1296,6 @@ public final AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest req
    */
   public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
       String parent, String filter) {
-    DATASET_PATH_TEMPLATE.validate(parent, "listAnnotatedDatasets");
     ListAnnotatedDatasetsRequest request =
         ListAnnotatedDatasetsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listAnnotatedDatasets(request);
@@ -1411,9 +1309,9 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (AnnotatedDataset element : dataLabelingServiceClient.listAnnotatedDatasets(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -1437,9 +1335,9 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListAnnotatedDatasetsPagedResponse> future = dataLabelingServiceClient.listAnnotatedDatasetsPagedCallable().futureCall(request);
    *   // Do something
@@ -1462,9 +1360,9 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   ListAnnotatedDatasetsRequest request = ListAnnotatedDatasetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListAnnotatedDatasetsResponse response = dataLabelingServiceClient.listAnnotatedDatasetsCallable().call(request);
@@ -1486,6 +1384,52 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets(
     return stub.listAnnotatedDatasetsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD
+  /**
+   * Deletes an annotated dataset by resource name.
+   *
+   * 

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   dataLabelingServiceClient.deleteAnnotatedDataset(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request) { + deleteAnnotatedDatasetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an annotated dataset by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotatedDatasetName name = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> future = dataLabelingServiceClient.deleteAnnotatedDatasetCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + deleteAnnotatedDatasetCallable() { + return stub.deleteAnnotatedDatasetCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Starts a labeling task for image. The type of image labeling task is configured by feature in @@ -1495,10 +1439,45 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED;
-   *   AnnotatedDataset response = dataLabelingServiceClient.labelImageAsync(formattedParent, basicConfig, feature).get();
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelImageAsync(parent, basicConfig, feature).get();
+   * }
+   * 
+ * + * @param parent Required. Name of the dataset to request labeling task, format: + * projects/{project_id}/datasets/{dataset_id} + * @param basicConfig Required. Basic human annotation config. + * @param feature Required. The type of image labeling task. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture labelImageAsync( + DatasetName parent, HumanAnnotationConfig basicConfig, LabelImageRequest.Feature feature) { + LabelImageRequest request = + LabelImageRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBasicConfig(basicConfig) + .setFeature(feature) + .build(); + return labelImageAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Starts a labeling task for image. The type of image labeling task is configured by feature in + * the request. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
+   *   LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED;
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelImageAsync(parent.toString(), basicConfig, feature).get();
    * }
    * 
* @@ -1512,7 +1491,6 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture labelImageAsync( String parent, HumanAnnotationConfig basicConfig, LabelImageRequest.Feature feature) { - DATASET_PATH_TEMPLATE.validate(parent, "labelImage"); LabelImageRequest request = LabelImageRequest.newBuilder() .setParent(parent) @@ -1531,11 +1509,11 @@ public final OperationFuture labelImag * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelImageRequest request = LabelImageRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1562,11 +1540,11 @@ public final OperationFuture labelImag
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelImageRequest request = LabelImageRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1591,11 +1569,11 @@ public final OperationFuture labelImag
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelImageRequest request = LabelImageRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1605,8 +1583,43 @@ public final OperationFuture labelImag
    * }
    * 
*/ - public final UnaryCallable labelImageCallable() { - return stub.labelImageCallable(); + public final UnaryCallable labelImageCallable() { + return stub.labelImageCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Starts a labeling task for video. The type of video labeling task is configured by feature in + * the request. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
+   *   LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED;
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelVideoAsync(parent, basicConfig, feature).get();
+   * }
+   * 
+ * + * @param parent Required. Name of the dataset to request labeling task, format: + * projects/{project_id}/datasets/{dataset_id} + * @param basicConfig Required. Basic human annotation config. + * @param feature Required. The type of video labeling task. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture labelVideoAsync( + DatasetName parent, HumanAnnotationConfig basicConfig, LabelVideoRequest.Feature feature) { + LabelVideoRequest request = + LabelVideoRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBasicConfig(basicConfig) + .setFeature(feature) + .build(); + return labelVideoAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1618,10 +1631,10 @@ public final UnaryCallable labelImageCallable() { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED;
-   *   AnnotatedDataset response = dataLabelingServiceClient.labelVideoAsync(formattedParent, basicConfig, feature).get();
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelVideoAsync(parent.toString(), basicConfig, feature).get();
    * }
    * 
* @@ -1635,7 +1648,6 @@ public final UnaryCallable labelImageCallable() { "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture labelVideoAsync( String parent, HumanAnnotationConfig basicConfig, LabelVideoRequest.Feature feature) { - DATASET_PATH_TEMPLATE.validate(parent, "labelVideo"); LabelVideoRequest request = LabelVideoRequest.newBuilder() .setParent(parent) @@ -1654,11 +1666,11 @@ public final OperationFuture labelVide * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelVideoRequest request = LabelVideoRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1685,11 +1697,11 @@ public final OperationFuture labelVide
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelVideoRequest request = LabelVideoRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1714,11 +1726,11 @@ public final OperationFuture labelVide
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelVideoRequest request = LabelVideoRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1741,10 +1753,45 @@ public final UnaryCallable labelVideoCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
+   *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
+   *   LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED;
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelTextAsync(parent, basicConfig, feature).get();
+   * }
+   * 
+ * + * @param parent Required. Name of the data set to request labeling task, format: + * projects/{project_id}/datasets/{dataset_id} + * @param basicConfig Required. Basic human annotation config. + * @param feature Required. The type of text labeling task. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture labelTextAsync( + DatasetName parent, HumanAnnotationConfig basicConfig, LabelTextRequest.Feature feature) { + LabelTextRequest request = + LabelTextRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBasicConfig(basicConfig) + .setFeature(feature) + .build(); + return labelTextAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Starts a labeling task for text. The type of text labeling task is configured by feature in the + * request. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED;
-   *   AnnotatedDataset response = dataLabelingServiceClient.labelTextAsync(formattedParent, basicConfig, feature).get();
+   *   AnnotatedDataset response = dataLabelingServiceClient.labelTextAsync(parent.toString(), basicConfig, feature).get();
    * }
    * 
* @@ -1758,7 +1805,6 @@ public final UnaryCallable labelVideoCallable() { "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture labelTextAsync( String parent, HumanAnnotationConfig basicConfig, LabelTextRequest.Feature feature) { - DATASET_PATH_TEMPLATE.validate(parent, "labelText"); LabelTextRequest request = LabelTextRequest.newBuilder() .setParent(parent) @@ -1777,11 +1823,11 @@ public final OperationFuture labelText * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelTextRequest request = LabelTextRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1808,11 +1854,11 @@ public final OperationFuture labelText
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelTextRequest request = LabelTextRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1837,11 +1883,11 @@ public final OperationFuture labelText
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]");
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]");
    *   HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build();
    *   LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED;
    *   LabelTextRequest request = LabelTextRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setBasicConfig(basicConfig)
    *     .setFeature(feature)
    *     .build();
@@ -1863,9 +1909,40 @@ public final UnaryCallable labelTextCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatExampleName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
+   *   ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
+   *   String filter = "";
+   *   Example response = dataLabelingServiceClient.getExample(name, filter);
+   * }
+   * 
+ * + * @param name Required. Name of example, format: + * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ + * {annotated_dataset_id}/examples/{example_id} + * @param filter Optional. An expression for filtering Examples. Filter by + * annotation_spec.display_name is supported. Format "annotation_spec.display_name = + * {display_name}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Example getExample(ExampleName name, String filter) { + GetExampleRequest request = + GetExampleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setFilter(filter) + .build(); + return getExample(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an example by resource name, including both data and annotation. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
    *   String filter = "";
-   *   Example response = dataLabelingServiceClient.getExample(formattedName, filter);
+   *   Example response = dataLabelingServiceClient.getExample(name.toString(), filter);
    * }
    * 
* @@ -1878,7 +1955,6 @@ public final UnaryCallable labelTextCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Example getExample(String name, String filter) { - EXAMPLE_PATH_TEMPLATE.validate(name, "getExample"); GetExampleRequest request = GetExampleRequest.newBuilder().setName(name).setFilter(filter).build(); return getExample(request); @@ -1892,9 +1968,9 @@ public final Example getExample(String name, String filter) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatExampleName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
+   *   ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
    *   GetExampleRequest request = GetExampleRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   Example response = dataLabelingServiceClient.getExample(request);
    * }
@@ -1915,9 +1991,9 @@ public final Example getExample(GetExampleRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatExampleName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
+   *   ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]");
    *   GetExampleRequest request = GetExampleRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Example> future = dataLabelingServiceClient.getExampleCallable().futureCall(request);
    *   // Do something
@@ -1937,9 +2013,40 @@ public final UnaryCallable getExampleCallable() {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   String filter = "";
+   *   for (Example element : dataLabelingServiceClient.listExamples(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Example resource parent. + * @param filter Optional. An expression for filtering Examples. For annotated datasets that have + * annotation spec set, filter by annotation_spec.display_name is supported. Format + * "annotation_spec.display_name = {display_name}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExamplesPagedResponse listExamples(AnnotatedDatasetName parent, String filter) { + ListExamplesRequest request = + ListExamplesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listExamples(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists examples in an annotated dataset. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   String filter = "";
-   *   for (Example element : dataLabelingServiceClient.listExamples(formattedParent, filter).iterateAll()) {
+   *   for (Example element : dataLabelingServiceClient.listExamples(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -1952,7 +2059,6 @@ public final UnaryCallable getExampleCallable() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListExamplesPagedResponse listExamples(String parent, String filter) {
-    ANNOTATED_DATASET_PATH_TEMPLATE.validate(parent, "listExamples");
     ListExamplesRequest request =
         ListExamplesRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listExamples(request);
@@ -1966,9 +2072,9 @@ public final ListExamplesPagedResponse listExamples(String parent, String filter
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   ListExamplesRequest request = ListExamplesRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (Example element : dataLabelingServiceClient.listExamples(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -1991,9 +2097,9 @@ public final ListExamplesPagedResponse listExamples(ListExamplesRequest request)
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   ListExamplesRequest request = ListExamplesRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListExamplesPagedResponse> future = dataLabelingServiceClient.listExamplesPagedCallable().futureCall(request);
    *   // Do something
@@ -2016,9 +2122,9 @@ public final ListExamplesPagedResponse listExamples(ListExamplesRequest request)
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatAnnotatedDatasetName("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+   *   AnnotatedDatasetName parent = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
    *   ListExamplesRequest request = ListExamplesRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListExamplesResponse response = dataLabelingServiceClient.listExamplesCallable().call(request);
@@ -2047,9 +2153,39 @@ public final UnaryCallable listExampl
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
+   *   AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(parent, annotationSpecSet);
+   * }
+   * 
+ * + * @param parent Required. AnnotationSpecSet resource parent, format: projects/{project_id} + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AnnotationSpecSet createAnnotationSpecSet( + ProjectName parent, AnnotationSpecSet annotationSpecSet) { + CreateAnnotationSpecSetRequest request = + CreateAnnotationSpecSetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAnnotationSpecSet(annotationSpecSet) + .build(); + return createAnnotationSpecSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an annotation spec set by providing a set of labels. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
-   *   AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(formattedParent, annotationSpecSet);
+   *   AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(parent.toString(), annotationSpecSet);
    * }
    * 
* @@ -2061,7 +2197,6 @@ public final UnaryCallable listExampl */ public final AnnotationSpecSet createAnnotationSpecSet( String parent, AnnotationSpecSet annotationSpecSet) { - PROJECT_PATH_TEMPLATE.validate(parent, "createAnnotationSpecSet"); CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder() .setParent(parent) @@ -2078,10 +2213,10 @@ public final AnnotationSpecSet createAnnotationSpecSet( * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
    *   CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setAnnotationSpecSet(annotationSpecSet)
    *     .build();
    *   AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(request);
@@ -2103,10 +2238,10 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
    *   CreateAnnotationSpecSetRequest request = CreateAnnotationSpecSetRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setAnnotationSpecSet(annotationSpecSet)
    *     .build();
    *   ApiFuture<AnnotationSpecSet> future = dataLabelingServiceClient.createAnnotationSpecSetCallable().futureCall(request);
@@ -2128,8 +2263,33 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
-   *   AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(formattedName);
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name);
+   * }
+   * 
+ * + * @param name Required. AnnotationSpecSet resource name, format: + * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AnnotationSpecSet getAnnotationSpecSet(AnnotationSpecSetName name) { + GetAnnotationSpecSetRequest request = + GetAnnotationSpecSetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAnnotationSpecSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an annotation spec set by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(name.toString());
    * }
    * 
* @@ -2138,7 +2298,6 @@ public final AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRe * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnnotationSpecSet getAnnotationSpecSet(String name) { - ANNOTATION_SPEC_SET_PATH_TEMPLATE.validate(name, "getAnnotationSpecSet"); GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder().setName(name).build(); return getAnnotationSpecSet(request); @@ -2152,9 +2311,9 @@ public final AnnotationSpecSet getAnnotationSpecSet(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
    *   GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   AnnotationSpecSet response = dataLabelingServiceClient.getAnnotationSpecSet(request);
    * }
@@ -2175,9 +2334,9 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
    *   GetAnnotationSpecSetRequest request = GetAnnotationSpecSetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<AnnotationSpecSet> future = dataLabelingServiceClient.getAnnotationSpecSetCallable().futureCall(request);
    *   // Do something
@@ -2198,9 +2357,39 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Parent of AnnotationSpecSet resource, format: projects/{project_id} + * @param filter Optional. Filter is not supported at this moment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets( + ProjectName parent, String filter) { + ListAnnotationSpecSetsRequest request = + ListAnnotationSpecSetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listAnnotationSpecSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists annotation spec sets for a project. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   String filter = "";
-   *   for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(formattedParent, filter).iterateAll()) {
+   *   for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -2212,7 +2401,6 @@ public final AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest
    */
   public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
       String parent, String filter) {
-    PROJECT_PATH_TEMPLATE.validate(parent, "listAnnotationSpecSets");
     ListAnnotationSpecSetsRequest request =
         ListAnnotationSpecSetsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listAnnotationSpecSets(request);
@@ -2226,9 +2414,9 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -2252,9 +2440,9 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListAnnotationSpecSetsPagedResponse> future = dataLabelingServiceClient.listAnnotationSpecSetsPagedCallable().futureCall(request);
    *   // Do something
@@ -2277,9 +2465,9 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListAnnotationSpecSetsResponse response = dataLabelingServiceClient.listAnnotationSpecSetsCallable().call(request);
@@ -2309,8 +2497,33 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
-   *   dataLabelingServiceClient.deleteAnnotationSpecSet(formattedName);
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   dataLabelingServiceClient.deleteAnnotationSpecSet(name);
+   * }
+   * 
+ * + * @param name Required. AnnotationSpec resource name, format: + * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAnnotationSpecSet(AnnotationSpecSetName name) { + DeleteAnnotationSpecSetRequest request = + DeleteAnnotationSpecSetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAnnotationSpecSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an annotation spec set by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   dataLabelingServiceClient.deleteAnnotationSpecSet(name.toString());
    * }
    * 
* @@ -2319,7 +2532,6 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteAnnotationSpecSet(String name) { - ANNOTATION_SPEC_SET_PATH_TEMPLATE.validate(name, "deleteAnnotationSpecSet"); DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder().setName(name).build(); deleteAnnotationSpecSet(request); @@ -2333,9 +2545,9 @@ public final void deleteAnnotationSpecSet(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
    *   DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.deleteAnnotationSpecSet(request);
    * }
@@ -2356,9 +2568,9 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+   *   AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
    *   DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.deleteAnnotationSpecSetCallable().futureCall(request);
    *   // Do something
@@ -2379,9 +2591,39 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   Instruction instruction = Instruction.newBuilder().build();
+   *   Instruction response = dataLabelingServiceClient.createInstructionAsync(parent, instruction).get();
+   * }
+   * 
+ * + * @param parent Required. Instruction resource parent, format: projects/{project_id} + * @param instruction Required. Instruction of how to perform the labeling task. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createInstructionAsync( + ProjectName parent, Instruction instruction) { + CreateInstructionRequest request = + CreateInstructionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInstruction(instruction) + .build(); + return createInstructionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an instruction for how data should be labeled. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Instruction instruction = Instruction.newBuilder().build();
-   *   Instruction response = dataLabelingServiceClient.createInstructionAsync(formattedParent, instruction).get();
+   *   Instruction response = dataLabelingServiceClient.createInstructionAsync(parent.toString(), instruction).get();
    * }
    * 
* @@ -2393,7 +2635,6 @@ public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture createInstructionAsync( String parent, Instruction instruction) { - PROJECT_PATH_TEMPLATE.validate(parent, "createInstruction"); CreateInstructionRequest request = CreateInstructionRequest.newBuilder().setParent(parent).setInstruction(instruction).build(); return createInstructionAsync(request); @@ -2407,10 +2648,10 @@ public final OperationFuture createInstr * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Instruction instruction = Instruction.newBuilder().build();
    *   CreateInstructionRequest request = CreateInstructionRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setInstruction(instruction)
    *     .build();
    *   Instruction response = dataLabelingServiceClient.createInstructionAsync(request).get();
@@ -2435,10 +2676,10 @@ public final OperationFuture createInstr
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Instruction instruction = Instruction.newBuilder().build();
    *   CreateInstructionRequest request = CreateInstructionRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setInstruction(instruction)
    *     .build();
    *   OperationFuture<Instruction, CreateInstructionMetadata> future = dataLabelingServiceClient.createInstructionOperationCallable().futureCall(request);
@@ -2461,10 +2702,10 @@ public final OperationFuture createInstr
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   Instruction instruction = Instruction.newBuilder().build();
    *   CreateInstructionRequest request = CreateInstructionRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setInstruction(instruction)
    *     .build();
    *   ApiFuture<Operation> future = dataLabelingServiceClient.createInstructionCallable().futureCall(request);
@@ -2485,8 +2726,31 @@ public final UnaryCallable createInstructio
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
-   *   Instruction response = dataLabelingServiceClient.getInstruction(formattedName);
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+   *   Instruction response = dataLabelingServiceClient.getInstruction(name);
+   * }
+   * 
+ * + * @param name Required. Instruction resource name, format: + * projects/{project_id}/instructions/{instruction_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instruction getInstruction(InstructionName name) { + GetInstructionRequest request = + GetInstructionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInstruction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an instruction by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+   *   Instruction response = dataLabelingServiceClient.getInstruction(name.toString());
    * }
    * 
* @@ -2495,7 +2759,6 @@ public final UnaryCallable createInstructio * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Instruction getInstruction(String name) { - INSTRUCTION_PATH_TEMPLATE.validate(name, "getInstruction"); GetInstructionRequest request = GetInstructionRequest.newBuilder().setName(name).build(); return getInstruction(request); } @@ -2508,9 +2771,9 @@ public final Instruction getInstruction(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
    *   GetInstructionRequest request = GetInstructionRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   Instruction response = dataLabelingServiceClient.getInstruction(request);
    * }
@@ -2531,9 +2794,9 @@ public final Instruction getInstruction(GetInstructionRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
    *   GetInstructionRequest request = GetInstructionRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Instruction> future = dataLabelingServiceClient.getInstructionCallable().futureCall(request);
    *   // Do something
@@ -2541,8 +2804,37 @@ public final Instruction getInstruction(GetInstructionRequest request) {
    * }
    * 
*/ - public final UnaryCallable getInstructionCallable() { - return stub.getInstructionCallable(); + public final UnaryCallable getInstructionCallable() { + return stub.getInstructionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists instructions for a project. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (Instruction element : dataLabelingServiceClient.listInstructions(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Instruction resource parent, format: projects/{project_id} + * @param filter Optional. Filter is not supported at this moment. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListInstructionsPagedResponse listInstructions(ProjectName parent, String filter) { + ListInstructionsRequest request = + ListInstructionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listInstructions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2553,9 +2845,9 @@ public final UnaryCallable getInstructionCal * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   String filter = "";
-   *   for (Instruction element : dataLabelingServiceClient.listInstructions(formattedParent, filter).iterateAll()) {
+   *   for (Instruction element : dataLabelingServiceClient.listInstructions(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -2566,7 +2858,6 @@ public final UnaryCallable getInstructionCal
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final ListInstructionsPagedResponse listInstructions(String parent, String filter) {
-    PROJECT_PATH_TEMPLATE.validate(parent, "listInstructions");
     ListInstructionsRequest request =
         ListInstructionsRequest.newBuilder().setParent(parent).setFilter(filter).build();
     return listInstructions(request);
@@ -2580,9 +2871,9 @@ public final ListInstructionsPagedResponse listInstructions(String parent, Strin
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListInstructionsRequest request = ListInstructionsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (Instruction element : dataLabelingServiceClient.listInstructions(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -2605,9 +2896,9 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListInstructionsRequest request = ListInstructionsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListInstructionsPagedResponse> future = dataLabelingServiceClient.listInstructionsPagedCallable().futureCall(request);
    *   // Do something
@@ -2630,9 +2921,9 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListInstructionsRequest request = ListInstructionsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListInstructionsResponse response = dataLabelingServiceClient.listInstructionsCallable().call(request);
@@ -2662,8 +2953,33 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
-   *   dataLabelingServiceClient.deleteInstruction(formattedName);
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+   *   dataLabelingServiceClient.deleteInstruction(name);
+   * }
+   * 
+ * + * @param name Required. Instruction resource name, format: + * projects/{project_id}/instructions/{instruction_id} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteInstruction(InstructionName name) { + DeleteInstructionRequest request = + DeleteInstructionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteInstruction(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an instruction object by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+   *   dataLabelingServiceClient.deleteInstruction(name.toString());
    * }
    * 
* @@ -2672,7 +2988,6 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteInstruction(String name) { - INSTRUCTION_PATH_TEMPLATE.validate(name, "deleteInstruction"); DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder().setName(name).build(); deleteInstruction(request); } @@ -2685,9 +3000,9 @@ public final void deleteInstruction(String name) { * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
    *   DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.deleteInstruction(request);
    * }
@@ -2708,9 +3023,9 @@ public final void deleteInstruction(DeleteInstructionRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]");
+   *   InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
    *   DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.deleteInstructionCallable().futureCall(request);
    *   // Do something
@@ -2724,38 +3039,63 @@ public final UnaryCallable deleteInstructionCal
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Gets an evaluation by resource name.
+   * Gets an evaluation by resource name (to search, use
+   * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
-   *   Evaluation response = dataLabelingServiceClient.getEvaluation(formattedName);
+   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   Evaluation response = dataLabelingServiceClient.getEvaluation(name);
    * }
    * 
* * @param name Required. Name of the evaluation. Format: - * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' + *

"projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Evaluation getEvaluation(EvaluationName name) { + GetEvaluationRequest request = + GetEvaluationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEvaluation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an evaluation by resource name (to search, use + * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]). + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   Evaluation response = dataLabelingServiceClient.getEvaluation(name.toString());
+   * }
+   * 
+ * + * @param name Required. Name of the evaluation. Format: + *

"projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>' * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Evaluation getEvaluation(String name) { - EVALUATION_PATH_TEMPLATE.validate(name, "getEvaluation"); GetEvaluationRequest request = GetEvaluationRequest.newBuilder().setName(name).build(); return getEvaluation(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Gets an evaluation by resource name. + * Gets an evaluation by resource name (to search, use + * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]). * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   GetEvaluationRequest request = GetEvaluationRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   Evaluation response = dataLabelingServiceClient.getEvaluation(request);
    * }
@@ -2770,15 +3110,16 @@ public final Evaluation getEvaluation(GetEvaluationRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Gets an evaluation by resource name.
+   * Gets an evaluation by resource name (to search, use
+   * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   GetEvaluationRequest request = GetEvaluationRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Evaluation> future = dataLabelingServiceClient.getEvaluationCallable().futureCall(request);
    *   // Do something
@@ -2792,30 +3133,113 @@ public final UnaryCallable getEvaluationCallab
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs evaluations within a project. Supported filter: evaluation_job, evaluation_time.
+   * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   String filter = "";
-   *   for (Evaluation element : dataLabelingServiceClient.searchEvaluations(formattedParent, filter).iterateAll()) {
+   *   for (Evaluation element : dataLabelingServiceClient.searchEvaluations(parent, filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * 
* - * @param parent Required. Evaluation search parent. Format: projects/{project_id} - * @param filter Optional. Support filtering by model id, job state, start and end time. Format: - * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND - * evaluation_job.evaluation_job_run_time_start = {timestamp} AND - * evaluation_job.evaluation_job_run_time_end = {timestamp} AND annotation_spec.display_name = - * {display_name}" + * @param parent Required. Evaluation search parent (project ID). Format: + * "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 + * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) * + * 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 + * 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 threshold for + * the + * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] + * that created the evaluation) * evaluation<span>_</span>job.job_state + * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) * + * 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]) + *

To filter by multiple critiera, use the `AND` operator or the `OR` operator. The + * following examples shows a string that filters by several critiera: + *

"evaluation<span>_</span>job.evaluation_job_id = + * <var>{evaluation_job_id}</var> AND + * evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND + * evaluation<span>_</span>job.evaluation_job_run_time_start = + * <var>{timestamp_1}</var> AND + * evaluation<span>_</span>job.evaluation_job_run_time_end = + * <var>{timestamp_2}</var> AND + * annotation<span>_</span>spec.display_name = + * <var>{display_name}</var>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchEvaluationsPagedResponse searchEvaluations( + EvaluationName parent, String filter) { + SearchEvaluationsRequest request = + SearchEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return searchEvaluations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   String filter = "";
+   *   for (Evaluation element : dataLabelingServiceClient.searchEvaluations(parent.toString(), filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Evaluation search parent (project ID). Format: + * "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 + * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) * + * 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 + * 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 threshold for + * the + * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] + * that created the evaluation) * evaluation<span>_</span>job.job_state + * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) * + * 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]) + *

To filter by multiple critiera, use the `AND` operator or the `OR` operator. The + * following examples shows a string that filters by several critiera: + *

"evaluation<span>_</span>job.evaluation_job_id = + * <var>{evaluation_job_id}</var> AND + * evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND + * evaluation<span>_</span>job.evaluation_job_run_time_start = + * <var>{timestamp_1}</var> AND + * evaluation<span>_</span>job.evaluation_job_run_time_end = + * <var>{timestamp_2}</var> AND + * annotation<span>_</span>spec.display_name = + * <var>{display_name}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchEvaluationsPagedResponse searchEvaluations(String parent, String filter) { - PROJECT_PATH_TEMPLATE.validate(parent, "searchEvaluations"); SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder().setParent(parent).setFilter(filter).build(); return searchEvaluations(request); @@ -2823,17 +3247,15 @@ public final SearchEvaluationsPagedResponse searchEvaluations(String parent, Str // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searchs evaluations within a project. Supported filter: evaluation_job, evaluation_time. + * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (Evaluation element : dataLabelingServiceClient.searchEvaluations(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -2850,17 +3272,15 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs evaluations within a project. Supported filter: evaluation_job, evaluation_time.
+   * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<SearchEvaluationsPagedResponse> future = dataLabelingServiceClient.searchEvaluationsPagedCallable().futureCall(request);
    *   // Do something
@@ -2877,17 +3297,15 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs evaluations within a project. Supported filter: evaluation_job, evaluation_time.
+   * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchEvaluationsRequest request = SearchEvaluationsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     SearchEvaluationsResponse response = dataLabelingServiceClient.searchEvaluationsCallable().call(request);
@@ -2911,26 +3329,58 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs example comparisons in evaluation, in format of examples of both ground truth and
-   * prediction(s). It is represented as a search with evaluation id.
+   * 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.
+   *
+   * 

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   for (SearchExampleComparisonsResponse.ExampleComparison element : dataLabelingServiceClient.searchExampleComparisons(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param 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>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchExampleComparisonsPagedResponse searchExampleComparisons( + EvaluationName parent) { + SearchExampleComparisonsRequest request = + SearchExampleComparisonsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchExampleComparisons(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
-   *   for (SearchExampleComparisonsResponse.ExampleComparison element : dataLabelingServiceClient.searchExampleComparisons(formattedParent).iterateAll()) {
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   for (SearchExampleComparisonsResponse.ExampleComparison element : dataLabelingServiceClient.searchExampleComparisons(parent.toString()).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * 
* - * @param parent Required. Name of the Evaluation resource to search example comparison from. - * Format: projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id} + * @param 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>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(String parent) { - EVALUATION_PATH_TEMPLATE.validate(parent, "searchExampleComparisons"); SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder().setParent(parent).build(); return searchExampleComparisons(request); @@ -2938,16 +3388,17 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(Stri // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Searchs example comparisons in evaluation, in format of examples of both ground truth and - * prediction(s). It is represented as a search with evaluation id. + * 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. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (SearchExampleComparisonsResponse.ExampleComparison element : dataLabelingServiceClient.searchExampleComparisons(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -2965,16 +3416,17 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs example comparisons in evaluation, in format of examples of both ground truth and
-   * prediction(s). It is represented as a search with evaluation id.
+   * 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.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<SearchExampleComparisonsPagedResponse> future = dataLabelingServiceClient.searchExampleComparisonsPagedCallable().futureCall(request);
    *   // Do something
@@ -2991,16 +3443,17 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Searchs example comparisons in evaluation, in format of examples of both ground truth and
-   * prediction(s). It is represented as a search with evaluation id.
+   * 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.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]");
+   *   EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]");
    *   SearchExampleComparisonsRequest request = SearchExampleComparisonsRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     SearchExampleComparisonsResponse response = dataLabelingServiceClient.searchExampleComparisonsCallable().call(request);
@@ -3030,18 +3483,46 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   EvaluationJob job = EvaluationJob.newBuilder().build();
+   *   EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(parent, job);
+   * }
+   * 
+ * + * @param parent Required. Evaluation job resource parent. Format: + * "projects/<var>{project_id}</var>" + * @param job Required. The evaluation job to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EvaluationJob createEvaluationJob(ProjectName parent, EvaluationJob job) { + CreateEvaluationJobRequest request = + CreateEvaluationJobRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setJob(job) + .build(); + return createEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an evaluation job. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   EvaluationJob job = EvaluationJob.newBuilder().build();
-   *   EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(formattedParent, job);
+   *   EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(parent.toString(), job);
    * }
    * 
* - * @param parent Required. Evaluation job resource parent, format: projects/{project_id}. + * @param parent Required. Evaluation job resource parent. Format: + * "projects/<var>{project_id}</var>" * @param job Required. The evaluation job to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationJob createEvaluationJob(String parent, EvaluationJob job) { - PROJECT_PATH_TEMPLATE.validate(parent, "createEvaluationJob"); CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder().setParent(parent).setJob(job).build(); return createEvaluationJob(request); @@ -3055,10 +3536,10 @@ public final EvaluationJob createEvaluationJob(String parent, EvaluationJob job) * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   EvaluationJob job = EvaluationJob.newBuilder().build();
    *   CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setJob(job)
    *     .build();
    *   EvaluationJob response = dataLabelingServiceClient.createEvaluationJob(request);
@@ -3080,10 +3561,10 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   EvaluationJob job = EvaluationJob.newBuilder().build();
    *   CreateEvaluationJobRequest request = CreateEvaluationJobRequest.newBuilder()
-   *     .setParent(formattedParent)
+   *     .setParent(parent.toString())
    *     .setJob(job)
    *     .build();
    *   ApiFuture<EvaluationJob> future = dataLabelingServiceClient.createEvaluationJobCallable().futureCall(request);
@@ -3099,7 +3580,12 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates an evaluation job.
+   * 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. * *

Sample code: * @@ -3112,12 +3598,15 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques *

* * @param evaluationJob Required. Evaluation job that is going to be updated. - * @param updateMask Optional. Mask for which field in evaluation_job should be updated. + * @param updateMask Optional. Mask for which fields to update. You can only provide the following + * fields: + *

* `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 */ public final EvaluationJob updateEvaluationJob( EvaluationJob evaluationJob, FieldMask updateMask) { - UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder() .setEvaluationJob(evaluationJob) @@ -3128,17 +3617,20 @@ public final EvaluationJob updateEvaluationJob( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an evaluation job. + * 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. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
    *   EvaluationJob evaluationJob = EvaluationJob.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder()
    *     .setEvaluationJob(evaluationJob)
-   *     .setUpdateMask(updateMask)
    *     .build();
    *   EvaluationJob response = dataLabelingServiceClient.updateEvaluationJob(request);
    * }
@@ -3153,17 +3645,20 @@ public final EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest reques
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Updates an evaluation job.
+   * 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. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
    *   EvaluationJob evaluationJob = EvaluationJob.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   UpdateEvaluationJobRequest request = UpdateEvaluationJobRequest.newBuilder()
    *     .setEvaluationJob(evaluationJob)
-   *     .setUpdateMask(updateMask)
    *     .build();
    *   ApiFuture<EvaluationJob> future = dataLabelingServiceClient.updateEvaluationJobCallable().futureCall(request);
    *   // Do something
@@ -3184,17 +3679,39 @@ public final EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest reques
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
-   *   EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(formattedName);
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name);
+   * }
+   * 
+ * + * @param name Required. Name of the evaluation job. Format: + *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final EvaluationJob getEvaluationJob(EvaluationJobName name) { + GetEvaluationJobRequest request = + GetEvaluationJobRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an evaluation job by resource name. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(name.toString());
    * }
    * 
* * @param name Required. Name of the evaluation job. Format: - * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' + *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EvaluationJob getEvaluationJob(String name) { - EVALUATION_JOB_PATH_TEMPLATE.validate(name, "getEvaluationJob"); GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder().setName(name).build(); return getEvaluationJob(request); } @@ -3207,9 +3724,9 @@ public final EvaluationJob getEvaluationJob(String name) { * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   EvaluationJob response = dataLabelingServiceClient.getEvaluationJob(request);
    * }
@@ -3230,9 +3747,9 @@ public final EvaluationJob getEvaluationJob(GetEvaluationJobRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   GetEvaluationJobRequest request = GetEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<EvaluationJob> future = dataLabelingServiceClient.getEvaluationJobCallable().futureCall(request);
    *   // Do something
@@ -3246,24 +3763,49 @@ public final UnaryCallable getEvaluation
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Pauses an evaluation job. Pausing a evaluation job that is already in PAUSED state will be a
+   * Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a
+   * no-op.
+   *
+   * 

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.pauseEvaluationJob(name);
+   * }
+   * 
+ * + * @param 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>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void pauseEvaluationJob(EvaluationJobName name) { + PauseEvaluationJobRequest request = + PauseEvaluationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + pauseEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a * no-op. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
-   *   dataLabelingServiceClient.pauseEvaluationJob(formattedName);
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.pauseEvaluationJob(name.toString());
    * }
    * 
* * @param name Required. Name of the evaluation job that is going to be paused. Format: - * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' + *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void pauseEvaluationJob(String name) { - EVALUATION_JOB_PATH_TEMPLATE.validate(name, "pauseEvaluationJob"); PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder().setName(name).build(); pauseEvaluationJob(request); @@ -3271,16 +3813,16 @@ public final void pauseEvaluationJob(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Pauses an evaluation job. Pausing a evaluation job that is already in PAUSED state will be a + * Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a * no-op. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.pauseEvaluationJob(request);
    * }
@@ -3295,16 +3837,16 @@ public final void pauseEvaluationJob(PauseEvaluationJobRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Pauses an evaluation job. Pausing a evaluation job that is already in PAUSED state will be a
+   * Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a
    * no-op.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   PauseEvaluationJobRequest request = PauseEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.pauseEvaluationJobCallable().futureCall(request);
    *   // Do something
@@ -3318,24 +3860,49 @@ public final UnaryCallable pauseEvaluationJobC
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Resumes a paused evaluation job. Deleted evaluation job can't be resumed. Resuming a running
-   * evaluation job will be a no-op.
+   * Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running
+   * or scheduled evaluation job is a no-op.
+   *
+   * 

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.resumeEvaluationJob(name);
+   * }
+   * 
+ * + * @param 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>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void resumeEvaluationJob(EvaluationJobName name) { + ResumeEvaluationJobRequest request = + ResumeEvaluationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + resumeEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running + * or scheduled evaluation job is a no-op. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
-   *   dataLabelingServiceClient.resumeEvaluationJob(formattedName);
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.resumeEvaluationJob(name.toString());
    * }
    * 
* * @param name Required. Name of the evaluation job that is going to be resumed. Format: - * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' + *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void resumeEvaluationJob(String name) { - EVALUATION_JOB_PATH_TEMPLATE.validate(name, "resumeEvaluationJob"); ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder().setName(name).build(); resumeEvaluationJob(request); @@ -3343,16 +3910,16 @@ public final void resumeEvaluationJob(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Resumes a paused evaluation job. Deleted evaluation job can't be resumed. Resuming a running - * evaluation job will be a no-op. + * Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running + * or scheduled evaluation job is a no-op. * *

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.resumeEvaluationJob(request);
    * }
@@ -3367,16 +3934,16 @@ public final void resumeEvaluationJob(ResumeEvaluationJobRequest request) {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Resumes a paused evaluation job. Deleted evaluation job can't be resumed. Resuming a running
-   * evaluation job will be a no-op.
+   * Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running
+   * or scheduled evaluation job is a no-op.
    *
    * 

Sample code: * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   ResumeEvaluationJobRequest request = ResumeEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.resumeEvaluationJobCallable().futureCall(request);
    *   // Do something
@@ -3396,17 +3963,41 @@ public final UnaryCallable resumeEvaluationJo
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
-   *   dataLabelingServiceClient.deleteEvaluationJob(formattedName);
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.deleteEvaluationJob(name);
+   * }
+   * 
+ * + * @param 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>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteEvaluationJob(EvaluationJobName name) { + DeleteEvaluationJobRequest request = + DeleteEvaluationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Stops and deletes an evaluation job. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+   *   dataLabelingServiceClient.deleteEvaluationJob(name.toString());
    * }
    * 
* * @param name Required. Name of the evaluation job that is going to be deleted. Format: - * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' + *

"projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteEvaluationJob(String name) { - EVALUATION_JOB_PATH_TEMPLATE.validate(name, "deleteEvaluationJob"); DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder().setName(name).build(); deleteEvaluationJob(request); @@ -3420,9 +4011,9 @@ public final void deleteEvaluationJob(String name) { * *


    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   dataLabelingServiceClient.deleteEvaluationJob(request);
    * }
@@ -3443,9 +4034,9 @@ public final void deleteEvaluationJob(DeleteEvaluationJobRequest request) {
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedName = DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]");
+   *   EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
    *   DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
-   *     .setName(formattedName)
+   *     .setName(name.toString())
    *     .build();
    *   ApiFuture<Void> future = dataLabelingServiceClient.deleteEvaluationJobCallable().futureCall(request);
    *   // Do something
@@ -3465,21 +4056,67 @@ public final UnaryCallable deleteEvaluationJo
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   String filter = "";
-   *   for (EvaluationJob element : dataLabelingServiceClient.listEvaluationJobs(formattedParent, filter).iterateAll()) {
+   *   for (EvaluationJob element : dataLabelingServiceClient.listEvaluationJobs(parent, filter).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * 
* - * @param parent Required. Evaluation resource parent. Format: "projects/{project_id}" - * @param filter Optional. Only support filter by model id and job state. Format: - * "evaluation_job.model_id = {model_id} AND evaluation_job.state = {EvaluationJob::State}" + * @param parent Required. Evaluation job resource parent. Format: + * "projects/<var>{project_id}</var>" + * @param filter Optional. You can filter the jobs to list by model_id (also known as model_name, + * as described in + * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) + * or by evaluation job state (as described in + * [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter by + * both criteria, use the `AND` operator or the `OR` operator. For example, you can use the + * following string for your filter: "evaluation<span>_</span>job.model_id = + * <var>{model_name}</var> AND evaluation<span>_</span>job.state = + * <var>{evaluation_job_state}</var>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEvaluationJobsPagedResponse listEvaluationJobs( + ProjectName parent, String filter) { + ListEvaluationJobsRequest request = + ListEvaluationJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return listEvaluationJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists all evaluation jobs within a project with possible filters. Pagination is supported. + * + *

Sample code: + * + *


+   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   String filter = "";
+   *   for (EvaluationJob element : dataLabelingServiceClient.listEvaluationJobs(parent.toString(), filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param parent Required. Evaluation job resource parent. Format: + * "projects/<var>{project_id}</var>" + * @param filter Optional. You can filter the jobs to list by model_id (also known as model_name, + * as described in + * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) + * or by evaluation job state (as described in + * [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter by + * both criteria, use the `AND` operator or the `OR` operator. For example, you can use the + * following string for your filter: "evaluation<span>_</span>job.model_id = + * <var>{model_name}</var> AND evaluation<span>_</span>job.state = + * <var>{evaluation_job_state}</var>" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEvaluationJobsPagedResponse listEvaluationJobs(String parent, String filter) { - PROJECT_PATH_TEMPLATE.validate(parent, "listEvaluationJobs"); ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder().setParent(parent).setFilter(filter).build(); return listEvaluationJobs(request); @@ -3493,11 +4130,9 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(String parent, S * *

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   for (EvaluationJob element : dataLabelingServiceClient.listEvaluationJobs(request).iterateAll()) {
    *     // doThingsWith(element);
@@ -3521,11 +4156,9 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   ApiFuture<ListEvaluationJobsPagedResponse> future = dataLabelingServiceClient.listEvaluationJobsPagedCallable().futureCall(request);
    *   // Do something
@@ -3548,11 +4181,9 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
    *
    * 

    * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
-   *   String filter = "";
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
    *   ListEvaluationJobsRequest request = ListEvaluationJobsRequest.newBuilder()
-   *     .setParent(formattedParent)
-   *     .setFilter(filter)
+   *     .setParent(parent.toString())
    *     .build();
    *   while (true) {
    *     ListEvaluationJobsResponse response = dataLabelingServiceClient.listEvaluationJobsCallable().call(request);
@@ -3574,46 +4205,6 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs(
     return stub.listEvaluationJobsCallable();
   }
 
-  // AUTO-GENERATED DOCUMENTATION AND METHOD
-  /**
-   * Deletes an annotated dataset by resource name.
-   *
-   * 

Sample code: - * - *


-   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder().build();
-   *   dataLabelingServiceClient.deleteAnnotatedDataset(request);
-   * }
-   * 
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request) { - deleteAnnotatedDatasetCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes an annotated dataset by resource name. - * - *

Sample code: - * - *


-   * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
-   *   DeleteAnnotatedDatasetRequest request = DeleteAnnotatedDatasetRequest.newBuilder().build();
-   *   ApiFuture<Void> future = dataLabelingServiceClient.deleteAnnotatedDatasetCallable().futureCall(request);
-   *   // Do something
-   *   future.get();
-   * }
-   * 
- */ - public final UnaryCallable - deleteAnnotatedDatasetCallable() { - return stub.deleteAnnotatedDatasetCallable(); - } - @Override public final void close() { stub.close(); diff --git a/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 index a6ae08bc..1932b2b7 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -149,6 +149,11 @@ public UnaryCallSettings getDataItemSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotatedDatasetsSettings(); } + /** Returns the object with the settings used for calls to deleteAnnotatedDataset. */ + public UnaryCallSettings deleteAnnotatedDatasetSettings() { + return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotatedDatasetSettings(); + } + /** Returns the object with the settings used for calls to labelImage. */ public UnaryCallSettings labelImageSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).labelImageSettings(); @@ -317,11 +322,6 @@ public UnaryCallSettings deleteEvaluationJobS return ((DataLabelingServiceStubSettings) getStubSettings()).listEvaluationJobsSettings(); } - /** Returns the object with the settings used for calls to deleteAnnotatedDataset. */ - public UnaryCallSettings deleteAnnotatedDatasetSettings() { - return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotatedDatasetSettings(); - } - public static final DataLabelingServiceSettings create(DataLabelingServiceStubSettings stub) throws IOException { return new DataLabelingServiceSettings.Builder(stub.toBuilder()).build(); @@ -496,6 +496,12 @@ public UnaryCallSettings.Builder getDataItemSettin return getStubSettingsBuilder().listAnnotatedDatasetsSettings(); } + /** Returns the builder for the settings used for calls to deleteAnnotatedDataset. */ + public UnaryCallSettings.Builder + deleteAnnotatedDatasetSettings() { + return getStubSettingsBuilder().deleteAnnotatedDatasetSettings(); + } + /** Returns the builder for the settings used for calls to labelImage. */ public UnaryCallSettings.Builder labelImageSettings() { return getStubSettingsBuilder().labelImageSettings(); @@ -672,12 +678,6 @@ public UnaryCallSettings.Builder getEvaluation return getStubSettingsBuilder().listEvaluationJobsSettings(); } - /** Returns the builder for the settings used for calls to deleteAnnotatedDataset. */ - public UnaryCallSettings.Builder - deleteAnnotatedDatasetSettings() { - return getStubSettingsBuilder().deleteAnnotatedDatasetSettings(); - } - @Override public DataLabelingServiceSettings build() throws IOException { return new DataLabelingServiceSettings(this); diff --git a/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 index 159102be..425d5498 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,9 +28,9 @@ *
  * 
  * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- *   String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]");
+ *   ProjectName parent = ProjectName.of("[PROJECT]");
  *   Dataset dataset = Dataset.newBuilder().build();
- *   Dataset response = dataLabelingServiceClient.createDataset(formattedParent, dataset);
+ *   Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
  * }
  * 
  * 
diff --git a/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 index b5a6eef7..0f3ef17b 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -176,6 +176,10 @@ public UnaryCallable getAnnotatedD throw new UnsupportedOperationException("Not implemented: listAnnotatedDatasetsCallable()"); } + public UnaryCallable deleteAnnotatedDatasetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAnnotatedDatasetCallable()"); + } + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable labelImageOperationCallable() { @@ -331,10 +335,6 @@ public UnaryCallable deleteEvaluationJobCalla throw new UnsupportedOperationException("Not implemented: listEvaluationJobsCallable()"); } - public UnaryCallable deleteAnnotatedDatasetCallable() { - throw new UnsupportedOperationException("Not implemented: deleteAnnotatedDatasetCallable()"); - } - @Override public abstract void close(); } diff --git a/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 index 771fec74..cb80574d 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -178,6 +178,8 @@ public class DataLabelingServiceStubSettings extends StubSettings listAnnotatedDatasetsSettings; + private final UnaryCallSettings + deleteAnnotatedDatasetSettings; private final UnaryCallSettings labelImageSettings; private final OperationCallSettings labelImageOperationSettings; @@ -231,8 +233,6 @@ public class DataLabelingServiceStubSettings extends StubSettings listEvaluationJobsSettings; - private final UnaryCallSettings - deleteAnnotatedDatasetSettings; /** Returns the object with the settings used for calls to createDataset. */ public UnaryCallSettings createDatasetSettings() { @@ -307,6 +307,11 @@ public UnaryCallSettings getDataItemSettings() { return listAnnotatedDatasetsSettings; } + /** Returns the object with the settings used for calls to deleteAnnotatedDataset. */ + public UnaryCallSettings deleteAnnotatedDatasetSettings() { + return deleteAnnotatedDatasetSettings; + } + /** Returns the object with the settings used for calls to labelImage. */ public UnaryCallSettings labelImageSettings() { return labelImageSettings; @@ -470,11 +475,6 @@ public UnaryCallSettings deleteEvaluationJobS return listEvaluationJobsSettings; } - /** Returns the object with the settings used for calls to deleteAnnotatedDataset. */ - public UnaryCallSettings deleteAnnotatedDatasetSettings() { - return deleteAnnotatedDatasetSettings; - } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public DataLabelingServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -556,6 +556,7 @@ protected DataLabelingServiceStubSettings(Builder settingsBuilder) throws IOExce listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); getAnnotatedDatasetSettings = settingsBuilder.getAnnotatedDatasetSettings().build(); listAnnotatedDatasetsSettings = settingsBuilder.listAnnotatedDatasetsSettings().build(); + deleteAnnotatedDatasetSettings = settingsBuilder.deleteAnnotatedDatasetSettings().build(); labelImageSettings = settingsBuilder.labelImageSettings().build(); labelImageOperationSettings = settingsBuilder.labelImageOperationSettings().build(); labelVideoSettings = settingsBuilder.labelVideoSettings().build(); @@ -584,7 +585,6 @@ protected DataLabelingServiceStubSettings(Builder settingsBuilder) throws IOExce resumeEvaluationJobSettings = settingsBuilder.resumeEvaluationJobSettings().build(); deleteEvaluationJobSettings = settingsBuilder.deleteEvaluationJobSettings().build(); listEvaluationJobsSettings = settingsBuilder.listEvaluationJobsSettings().build(); - deleteAnnotatedDatasetSettings = settingsBuilder.deleteAnnotatedDatasetSettings().build(); } private static final PagedListDescriptor @@ -1168,6 +1168,8 @@ public static class Builder ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings; + private final UnaryCallSettings.Builder + deleteAnnotatedDatasetSettings; private final UnaryCallSettings.Builder labelImageSettings; private final OperationCallSettings.Builder< LabelImageRequest, AnnotatedDataset, LabelOperationMetadata> @@ -1231,8 +1233,6 @@ public static class Builder private final PagedCallSettings.Builder< ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse> listEvaluationJobsSettings; - private final UnaryCallSettings.Builder - deleteAnnotatedDatasetSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1258,11 +1258,11 @@ public static class Builder RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(100L)) .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(30000L)) + .setMaxRetryDelay(Duration.ofMillis(60000L)) .setInitialRpcTimeout(Duration.ofMillis(20000L)) .setRpcTimeoutMultiplier(1.0) .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(300000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) .build(); definitions.put("default", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); @@ -1300,6 +1300,8 @@ protected Builder(ClientContext clientContext) { listAnnotatedDatasetsSettings = PagedCallSettings.newBuilder(LIST_ANNOTATED_DATASETS_PAGE_STR_FACT); + deleteAnnotatedDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + labelImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); labelImageOperationSettings = OperationCallSettings.newBuilder(); @@ -1356,8 +1358,6 @@ protected Builder(ClientContext clientContext) { listEvaluationJobsSettings = PagedCallSettings.newBuilder(LIST_EVALUATION_JOBS_PAGE_STR_FACT); - deleteAnnotatedDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - unaryMethodSettingsBuilders = ImmutableList.>of( createDatasetSettings, @@ -1370,6 +1370,7 @@ protected Builder(ClientContext clientContext) { listDataItemsSettings, getAnnotatedDatasetSettings, listAnnotatedDatasetsSettings, + deleteAnnotatedDatasetSettings, labelImageSettings, labelVideoSettings, labelTextSettings, @@ -1392,8 +1393,7 @@ protected Builder(ClientContext clientContext) { pauseEvaluationJobSettings, resumeEvaluationJobSettings, deleteEvaluationJobSettings, - listEvaluationJobsSettings, - deleteAnnotatedDatasetSettings); + listEvaluationJobsSettings); initDefaults(this); } @@ -1426,7 +1426,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -1436,7 +1436,7 @@ private static Builder initDefaults(Builder builder) { builder .exportDataSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -1459,6 +1459,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .deleteAnnotatedDatasetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .labelImageSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -1501,7 +1506,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteAnnotationSpecSetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -1521,7 +1526,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteInstructionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -1566,18 +1571,13 @@ private static Builder initDefaults(Builder builder) { builder .deleteEvaluationJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .listEvaluationJobsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - builder - .deleteAnnotatedDatasetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .importDataOperationSettings() .setInitialCallSettings( @@ -1606,7 +1606,7 @@ private static Builder initDefaults(Builder builder) { .exportDataOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) .setResponseTransformer( @@ -1735,6 +1735,7 @@ protected Builder(DataLabelingServiceStubSettings settings) { listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); getAnnotatedDatasetSettings = settings.getAnnotatedDatasetSettings.toBuilder(); listAnnotatedDatasetsSettings = settings.listAnnotatedDatasetsSettings.toBuilder(); + deleteAnnotatedDatasetSettings = settings.deleteAnnotatedDatasetSettings.toBuilder(); labelImageSettings = settings.labelImageSettings.toBuilder(); labelImageOperationSettings = settings.labelImageOperationSettings.toBuilder(); labelVideoSettings = settings.labelVideoSettings.toBuilder(); @@ -1762,7 +1763,6 @@ protected Builder(DataLabelingServiceStubSettings settings) { resumeEvaluationJobSettings = settings.resumeEvaluationJobSettings.toBuilder(); deleteEvaluationJobSettings = settings.deleteEvaluationJobSettings.toBuilder(); listEvaluationJobsSettings = settings.listEvaluationJobsSettings.toBuilder(); - deleteAnnotatedDatasetSettings = settings.deleteAnnotatedDatasetSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1776,6 +1776,7 @@ protected Builder(DataLabelingServiceStubSettings settings) { listDataItemsSettings, getAnnotatedDatasetSettings, listAnnotatedDatasetsSettings, + deleteAnnotatedDatasetSettings, labelImageSettings, labelVideoSettings, labelTextSettings, @@ -1798,8 +1799,7 @@ protected Builder(DataLabelingServiceStubSettings settings) { pauseEvaluationJobSettings, resumeEvaluationJobSettings, deleteEvaluationJobSettings, - listEvaluationJobsSettings, - deleteAnnotatedDatasetSettings); + listEvaluationJobsSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -1895,6 +1895,12 @@ public UnaryCallSettings.Builder getDataItemSettin return listAnnotatedDatasetsSettings; } + /** Returns the builder for the settings used for calls to deleteAnnotatedDataset. */ + public UnaryCallSettings.Builder + deleteAnnotatedDatasetSettings() { + return deleteAnnotatedDatasetSettings; + } + /** Returns the builder for the settings used for calls to labelImage. */ public UnaryCallSettings.Builder labelImageSettings() { return labelImageSettings; @@ -2071,12 +2077,6 @@ public UnaryCallSettings.Builder getEvaluation return listEvaluationJobsSettings; } - /** Returns the builder for the settings used for calls to deleteAnnotatedDataset. */ - public UnaryCallSettings.Builder - deleteAnnotatedDatasetSettings() { - return deleteAnnotatedDatasetSettings; - } - @Override public DataLabelingServiceStubSettings build() throws IOException { return new DataLabelingServiceStubSettings(this); diff --git a/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 index d387e8cb..2b96fd21 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1a5d0dfd..b24b8fb2 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -199,6 +199,16 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub { .setResponseMarshaller( ProtoUtils.marshaller(ListAnnotatedDatasetsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + deleteAnnotatedDatasetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotatedDataset") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAnnotatedDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); private static final MethodDescriptor labelImageMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -426,16 +436,6 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub { .setResponseMarshaller( ProtoUtils.marshaller(ListEvaluationJobsResponse.getDefaultInstance())) .build(); - private static final MethodDescriptor - deleteAnnotatedDatasetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotatedDataset") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAnnotatedDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -464,6 +464,7 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub { listAnnotatedDatasetsCallable; private final UnaryCallable listAnnotatedDatasetsPagedCallable; + private final UnaryCallable deleteAnnotatedDatasetCallable; private final UnaryCallable labelImageCallable; private final OperationCallable labelImageOperationCallable; @@ -518,7 +519,6 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub { listEvaluationJobsCallable; private final UnaryCallable listEvaluationJobsPagedCallable; - private final UnaryCallable deleteAnnotatedDatasetCallable; private final GrpcStubCallableFactory callableFactory; @@ -695,6 +695,19 @@ public Map extract(ListAnnotatedDatasetsRequest request) { } }) .build(); + GrpcCallSettings deleteAnnotatedDatasetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAnnotatedDatasetMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteAnnotatedDatasetRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings labelImageTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(labelImageMethodDescriptor) @@ -1008,19 +1021,6 @@ public Map extract(ListEvaluationJobsRequest request) { } }) .build(); - GrpcCallSettings deleteAnnotatedDatasetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAnnotatedDatasetMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteAnnotatedDatasetRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } - }) - .build(); this.createDatasetCallable = callableFactory.createUnaryCallable( @@ -1079,6 +1079,11 @@ public Map extract(DeleteAnnotatedDatasetRequest request) { listAnnotatedDatasetsTransportSettings, settings.listAnnotatedDatasetsSettings(), clientContext); + this.deleteAnnotatedDatasetCallable = + callableFactory.createUnaryCallable( + deleteAnnotatedDatasetTransportSettings, + settings.deleteAnnotatedDatasetSettings(), + clientContext); this.labelImageCallable = callableFactory.createUnaryCallable( labelImageTransportSettings, settings.labelImageSettings(), clientContext); @@ -1226,11 +1231,6 @@ public Map extract(DeleteAnnotatedDatasetRequest request) { listEvaluationJobsTransportSettings, settings.listEvaluationJobsSettings(), clientContext); - this.deleteAnnotatedDatasetCallable = - callableFactory.createUnaryCallable( - deleteAnnotatedDatasetTransportSettings, - settings.deleteAnnotatedDatasetSettings(), - clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -1309,6 +1309,10 @@ public UnaryCallable getAnnotatedD return listAnnotatedDatasetsCallable; } + public UnaryCallable deleteAnnotatedDatasetCallable() { + return deleteAnnotatedDatasetCallable; + } + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable labelImageOperationCallable() { @@ -1461,10 +1465,6 @@ public UnaryCallable deleteEvaluationJobCalla return listEvaluationJobsCallable; } - public UnaryCallable deleteAnnotatedDatasetCallable() { - return deleteAnnotatedDatasetCallable; - } - @Override public final void close() { shutdown(); diff --git a/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 index 5e0b7ba5..89e48529 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,30 +94,30 @@ public void tearDown() throws Exception { @Test @SuppressWarnings("all") public void createDatasetTest() { - String name = "name3373707"; + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long dataItemCount = 2014260376L; Dataset expectedResponse = Dataset.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .setDataItemCount(dataItemCount) .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); Dataset dataset = Dataset.newBuilder().build(); - Dataset actualResponse = client.createDataset(formattedParent, dataset); + Dataset actualResponse = client.createDataset(parent, dataset); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateDatasetRequest actualRequest = (CreateDatasetRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(dataset, actualRequest.getDataset()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -132,10 +132,10 @@ public void createDatasetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); Dataset dataset = Dataset.newBuilder().build(); - client.createDataset(formattedParent, dataset); + client.createDataset(parent, dataset); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -145,29 +145,29 @@ public void createDatasetExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getDatasetTest() { - String name2 = "name2-1052831874"; + DatasetName name2 = DatasetName.of("[PROJECT]", "[DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long dataItemCount = 2014260376L; Dataset expectedResponse = Dataset.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDisplayName(displayName) .setDescription(description) .setDataItemCount(dataItemCount) .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); - Dataset actualResponse = client.getDataset(formattedName); + Dataset actualResponse = client.getDataset(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetDatasetRequest actualRequest = (GetDatasetRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, DatasetName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -181,9 +181,9 @@ public void getDatasetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); - client.getDataset(formattedName); + client.getDataset(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -203,10 +203,10 @@ public void listDatasetsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - ListDatasetsPagedResponse pagedListResponse = client.listDatasets(formattedParent, filter); + ListDatasetsPagedResponse pagedListResponse = client.listDatasets(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -216,7 +216,7 @@ public void listDatasetsTest() { Assert.assertEquals(1, actualRequests.size()); ListDatasetsRequest actualRequest = (ListDatasetsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -231,10 +231,10 @@ public void listDatasetsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - client.listDatasets(formattedParent, filter); + client.listDatasets(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -247,15 +247,15 @@ public void deleteDatasetTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); - client.deleteDataset(formattedName); + client.deleteDataset(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteDatasetRequest actualRequest = (DeleteDatasetRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, DatasetName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -269,9 +269,9 @@ public void deleteDatasetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); - client.deleteDataset(formattedName); + client.deleteDataset(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -298,18 +298,17 @@ public void importDataTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); InputConfig inputConfig = InputConfig.newBuilder().build(); - ImportDataOperationResponse actualResponse = - client.importDataAsync(formattedName, inputConfig).get(); + ImportDataOperationResponse actualResponse = client.importDataAsync(name, inputConfig).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ImportDataRequest actualRequest = (ImportDataRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, DatasetName.parse(actualRequest.getName())); Assert.assertEquals(inputConfig, actualRequest.getInputConfig()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -324,10 +323,10 @@ public void importDataExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); InputConfig inputConfig = InputConfig.newBuilder().build(); - client.importDataAsync(formattedName, inputConfig).get(); + client.importDataAsync(name, inputConfig).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -356,21 +355,23 @@ public void exportDataTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); - String annotatedDataset = "annotatedDataset-1407812655"; + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + AnnotatedDatasetName annotatedDataset = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String filter = "filter-1274492040"; OutputConfig outputConfig = OutputConfig.newBuilder().build(); ExportDataOperationResponse actualResponse = - client.exportDataAsync(formattedName, annotatedDataset, filter, outputConfig).get(); + client.exportDataAsync(name, annotatedDataset, filter, outputConfig).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ExportDataRequest actualRequest = (ExportDataRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); - Assert.assertEquals(annotatedDataset, actualRequest.getAnnotatedDataset()); + Assert.assertEquals(name, DatasetName.parse(actualRequest.getName())); + Assert.assertEquals( + annotatedDataset, AnnotatedDatasetName.parse(actualRequest.getAnnotatedDataset())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertEquals(outputConfig, actualRequest.getOutputConfig()); Assert.assertTrue( @@ -386,12 +387,13 @@ public void exportDataExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); - String annotatedDataset = "annotatedDataset-1407812655"; + DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]"); + AnnotatedDatasetName annotatedDataset = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String filter = "filter-1274492040"; OutputConfig outputConfig = OutputConfig.newBuilder().build(); - client.exportDataAsync(formattedName, annotatedDataset, filter, outputConfig).get(); + client.exportDataAsync(name, annotatedDataset, filter, outputConfig).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -403,21 +405,20 @@ public void exportDataExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getDataItemTest() { - String name2 = "name2-1052831874"; - DataItem expectedResponse = DataItem.newBuilder().setName(name2).build(); + DataItemName name2 = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); + DataItem expectedResponse = DataItem.newBuilder().setName(name2.toString()).build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatDataItemName("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); + DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); - DataItem actualResponse = client.getDataItem(formattedName); + DataItem actualResponse = client.getDataItem(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetDataItemRequest actualRequest = (GetDataItemRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, DataItemName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -431,10 +432,9 @@ public void getDataItemExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatDataItemName("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); + DataItemName name = DataItemName.of("[PROJECT]", "[DATASET]", "[DATA_ITEM]"); - client.getDataItem(formattedName); + client.getDataItem(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -454,10 +454,10 @@ public void listDataItemsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; - ListDataItemsPagedResponse pagedListResponse = client.listDataItems(formattedParent, filter); + ListDataItemsPagedResponse pagedListResponse = client.listDataItems(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -467,7 +467,7 @@ public void listDataItemsTest() { Assert.assertEquals(1, actualRequests.size()); ListDataItemsRequest actualRequest = (ListDataItemsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, DatasetName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -482,11 +482,10 @@ public void listDataItemsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; - client.listDataItems(formattedParent, filter); + client.listDataItems(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -496,14 +495,15 @@ public void listDataItemsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getAnnotatedDatasetTest() { - String name2 = "name2-1052831874"; + AnnotatedDatasetName name2 = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long exampleCount = 1517063674L; long completedExampleCount = 612567290L; AnnotatedDataset expectedResponse = AnnotatedDataset.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDisplayName(displayName) .setDescription(description) .setExampleCount(exampleCount) @@ -511,18 +511,17 @@ public void getAnnotatedDatasetTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatAnnotatedDatasetName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); + AnnotatedDatasetName name = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); - AnnotatedDataset actualResponse = client.getAnnotatedDataset(formattedName); + AnnotatedDataset actualResponse = client.getAnnotatedDataset(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetAnnotatedDatasetRequest actualRequest = (GetAnnotatedDatasetRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, AnnotatedDatasetName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -536,11 +535,10 @@ public void getAnnotatedDatasetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatAnnotatedDatasetName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); + AnnotatedDatasetName name = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); - client.getAnnotatedDataset(formattedName); + client.getAnnotatedDataset(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -560,11 +558,11 @@ public void listAnnotatedDatasetsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; ListAnnotatedDatasetsPagedResponse pagedListResponse = - client.listAnnotatedDatasets(formattedParent, filter); + client.listAnnotatedDatasets(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -575,7 +573,7 @@ public void listAnnotatedDatasetsTest() { ListAnnotatedDatasetsRequest actualRequest = (ListAnnotatedDatasetsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, DatasetName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -590,11 +588,10 @@ public void listAnnotatedDatasetsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); String filter = "filter-1274492040"; - client.listAnnotatedDatasets(formattedParent, filter); + client.listAnnotatedDatasets(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -604,14 +601,15 @@ public void listAnnotatedDatasetsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void labelImageTest() throws Exception { - String name = "name3373707"; + AnnotatedDatasetName name = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long exampleCount = 1517063674L; long completedExampleCount = 612567290L; AnnotatedDataset expectedResponse = AnnotatedDataset.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .setExampleCount(exampleCount) @@ -625,19 +623,18 @@ public void labelImageTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED; - AnnotatedDataset actualResponse = - client.labelImageAsync(formattedParent, basicConfig, feature).get(); + AnnotatedDataset actualResponse = client.labelImageAsync(parent, basicConfig, feature).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); LabelImageRequest actualRequest = (LabelImageRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, DatasetName.parse(actualRequest.getParent())); Assert.assertEquals(basicConfig, actualRequest.getBasicConfig()); Assert.assertEquals(feature, actualRequest.getFeature()); Assert.assertTrue( @@ -653,12 +650,11 @@ public void labelImageExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelImageRequest.Feature feature = LabelImageRequest.Feature.FEATURE_UNSPECIFIED; - client.labelImageAsync(formattedParent, basicConfig, feature).get(); + client.labelImageAsync(parent, basicConfig, feature).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -670,14 +666,15 @@ public void labelImageExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void labelVideoTest() throws Exception { - String name = "name3373707"; + AnnotatedDatasetName name = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long exampleCount = 1517063674L; long completedExampleCount = 612567290L; AnnotatedDataset expectedResponse = AnnotatedDataset.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .setExampleCount(exampleCount) @@ -691,19 +688,18 @@ public void labelVideoTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED; - AnnotatedDataset actualResponse = - client.labelVideoAsync(formattedParent, basicConfig, feature).get(); + AnnotatedDataset actualResponse = client.labelVideoAsync(parent, basicConfig, feature).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); LabelVideoRequest actualRequest = (LabelVideoRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, DatasetName.parse(actualRequest.getParent())); Assert.assertEquals(basicConfig, actualRequest.getBasicConfig()); Assert.assertEquals(feature, actualRequest.getFeature()); Assert.assertTrue( @@ -719,12 +715,11 @@ public void labelVideoExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelVideoRequest.Feature feature = LabelVideoRequest.Feature.FEATURE_UNSPECIFIED; - client.labelVideoAsync(formattedParent, basicConfig, feature).get(); + client.labelVideoAsync(parent, basicConfig, feature).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -736,14 +731,15 @@ public void labelVideoExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void labelTextTest() throws Exception { - String name = "name3373707"; + AnnotatedDatasetName name = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; long exampleCount = 1517063674L; long completedExampleCount = 612567290L; AnnotatedDataset expectedResponse = AnnotatedDataset.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .setExampleCount(exampleCount) @@ -757,19 +753,18 @@ public void labelTextTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedParent = DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED; - AnnotatedDataset actualResponse = - client.labelTextAsync(formattedParent, basicConfig, feature).get(); + AnnotatedDataset actualResponse = client.labelTextAsync(parent, basicConfig, feature).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); LabelTextRequest actualRequest = (LabelTextRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, DatasetName.parse(actualRequest.getParent())); Assert.assertEquals(basicConfig, actualRequest.getBasicConfig()); Assert.assertEquals(feature, actualRequest.getFeature()); Assert.assertTrue( @@ -785,12 +780,11 @@ public void labelTextExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatDatasetName("[PROJECT]", "[DATASET]"); + DatasetName parent = DatasetName.of("[PROJECT]", "[DATASET]"); HumanAnnotationConfig basicConfig = HumanAnnotationConfig.newBuilder().build(); LabelTextRequest.Feature feature = LabelTextRequest.Feature.FEATURE_UNSPECIFIED; - client.labelTextAsync(formattedParent, basicConfig, feature).get(); + client.labelTextAsync(parent, basicConfig, feature).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -802,23 +796,22 @@ public void labelTextExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getExampleTest() { - String name2 = "name2-1052831874"; - Example expectedResponse = Example.newBuilder().setName(name2).build(); + ExampleName name2 = + ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); + Example expectedResponse = Example.newBuilder().setName(name2.toString()).build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatExampleName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); + ExampleName name = ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); String filter = "filter-1274492040"; - Example actualResponse = client.getExample(formattedName, filter); + Example actualResponse = client.getExample(name, filter); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetExampleRequest actualRequest = (GetExampleRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, ExampleName.parse(actualRequest.getName())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -833,12 +826,11 @@ public void getExampleExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatExampleName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); + ExampleName name = + ExampleName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]", "[EXAMPLE]"); String filter = "filter-1274492040"; - client.getExample(formattedName, filter); + client.getExample(name, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -858,12 +850,11 @@ public void listExamplesTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = - DataLabelingServiceClient.formatAnnotatedDatasetName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); + AnnotatedDatasetName parent = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String filter = "filter-1274492040"; - ListExamplesPagedResponse pagedListResponse = client.listExamples(formattedParent, filter); + ListExamplesPagedResponse pagedListResponse = client.listExamples(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -873,7 +864,7 @@ public void listExamplesTest() { Assert.assertEquals(1, actualRequests.size()); ListExamplesRequest actualRequest = (ListExamplesRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, AnnotatedDatasetName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -888,12 +879,11 @@ public void listExamplesExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatAnnotatedDatasetName( - "[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); + AnnotatedDatasetName parent = + AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]"); String filter = "filter-1274492040"; - client.listExamples(formattedParent, filter); + client.listExamples(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -903,22 +893,21 @@ public void listExamplesExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void createAnnotationSpecSetTest() { - String name = "name3373707"; + AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; AnnotationSpecSet expectedResponse = AnnotationSpecSet.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); - AnnotationSpecSet actualResponse = - client.createAnnotationSpecSet(formattedParent, annotationSpecSet); + AnnotationSpecSet actualResponse = client.createAnnotationSpecSet(parent, annotationSpecSet); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); @@ -926,7 +915,7 @@ public void createAnnotationSpecSetTest() { CreateAnnotationSpecSetRequest actualRequest = (CreateAnnotationSpecSetRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(annotationSpecSet, actualRequest.getAnnotationSpecSet()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -941,10 +930,10 @@ public void createAnnotationSpecSetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build(); - client.createAnnotationSpecSet(formattedParent, annotationSpecSet); + client.createAnnotationSpecSet(parent, annotationSpecSet); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -954,28 +943,27 @@ public void createAnnotationSpecSetExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getAnnotationSpecSetTest() { - String name2 = "name2-1052831874"; + AnnotationSpecSetName name2 = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; AnnotationSpecSet expectedResponse = AnnotationSpecSet.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDisplayName(displayName) .setDescription(description) .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]"); + AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); - AnnotationSpecSet actualResponse = client.getAnnotationSpecSet(formattedName); + AnnotationSpecSet actualResponse = client.getAnnotationSpecSet(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetAnnotationSpecSetRequest actualRequest = (GetAnnotationSpecSetRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, AnnotationSpecSetName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -989,11 +977,9 @@ public void getAnnotationSpecSetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatAnnotationSpecSetName( - "[PROJECT]", "[ANNOTATION_SPEC_SET]"); + AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); - client.getAnnotationSpecSet(formattedName); + client.getAnnotationSpecSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1013,11 +999,11 @@ public void listAnnotationSpecSetsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; ListAnnotationSpecSetsPagedResponse pagedListResponse = - client.listAnnotationSpecSets(formattedParent, filter); + client.listAnnotationSpecSets(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -1028,7 +1014,7 @@ public void listAnnotationSpecSetsTest() { ListAnnotationSpecSetsRequest actualRequest = (ListAnnotationSpecSetsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1043,10 +1029,10 @@ public void listAnnotationSpecSetsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - client.listAnnotationSpecSets(formattedParent, filter); + client.listAnnotationSpecSets(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1059,17 +1045,16 @@ public void deleteAnnotationSpecSetTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatAnnotationSpecSetName("[PROJECT]", "[ANNOTATION_SPEC_SET]"); + AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); - client.deleteAnnotationSpecSet(formattedName); + client.deleteAnnotationSpecSet(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteAnnotationSpecSetRequest actualRequest = (DeleteAnnotationSpecSetRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, AnnotationSpecSetName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1083,11 +1068,9 @@ public void deleteAnnotationSpecSetExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatAnnotationSpecSetName( - "[PROJECT]", "[ANNOTATION_SPEC_SET]"); + AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]"); - client.deleteAnnotationSpecSet(formattedName); + client.deleteAnnotationSpecSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1097,12 +1080,12 @@ public void deleteAnnotationSpecSetExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void createInstructionTest() throws Exception { - String name = "name3373707"; + InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; Instruction expectedResponse = Instruction.newBuilder() - .setName(name) + .setName(name.toString()) .setDisplayName(displayName) .setDescription(description) .build(); @@ -1114,17 +1097,17 @@ public void createInstructionTest() throws Exception { .build(); mockDataLabelingService.addResponse(resultOperation); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); Instruction instruction = Instruction.newBuilder().build(); - Instruction actualResponse = client.createInstructionAsync(formattedParent, instruction).get(); + Instruction actualResponse = client.createInstructionAsync(parent, instruction).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateInstructionRequest actualRequest = (CreateInstructionRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(instruction, actualRequest.getInstruction()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1139,10 +1122,10 @@ public void createInstructionExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); Instruction instruction = Instruction.newBuilder().build(); - client.createInstructionAsync(formattedParent, instruction).get(); + client.createInstructionAsync(parent, instruction).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -1154,28 +1137,27 @@ public void createInstructionExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getInstructionTest() { - String name2 = "name2-1052831874"; + InstructionName name2 = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); String displayName = "displayName1615086568"; String description = "description-1724546052"; Instruction expectedResponse = Instruction.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDisplayName(displayName) .setDescription(description) .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]"); + InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); - Instruction actualResponse = client.getInstruction(formattedName); + Instruction actualResponse = client.getInstruction(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetInstructionRequest actualRequest = (GetInstructionRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, InstructionName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1189,10 +1171,9 @@ public void getInstructionExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]"); + InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); - client.getInstruction(formattedName); + client.getInstruction(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1212,11 +1193,10 @@ public void listInstructionsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - ListInstructionsPagedResponse pagedListResponse = - client.listInstructions(formattedParent, filter); + ListInstructionsPagedResponse pagedListResponse = client.listInstructions(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -1226,7 +1206,7 @@ public void listInstructionsTest() { Assert.assertEquals(1, actualRequests.size()); ListInstructionsRequest actualRequest = (ListInstructionsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1241,10 +1221,10 @@ public void listInstructionsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - client.listInstructions(formattedParent, filter); + client.listInstructions(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1257,16 +1237,15 @@ public void deleteInstructionTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]"); + InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); - client.deleteInstruction(formattedName); + client.deleteInstruction(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteInstructionRequest actualRequest = (DeleteInstructionRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, InstructionName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1280,10 +1259,9 @@ public void deleteInstructionExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatInstructionName("[PROJECT]", "[INSTRUCTION]"); + InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]"); - client.deleteInstruction(formattedName); + client.deleteInstruction(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1293,23 +1271,25 @@ public void deleteInstructionExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getEvaluationTest() { - String name2 = "name2-1052831874"; + EvaluationName name2 = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); long evaluatedItemCount = 358077111L; Evaluation expectedResponse = - Evaluation.newBuilder().setName(name2).setEvaluatedItemCount(evaluatedItemCount).build(); + Evaluation.newBuilder() + .setName(name2.toString()) + .setEvaluatedItemCount(evaluatedItemCount) + .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]"); + EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); - Evaluation actualResponse = client.getEvaluation(formattedName); + Evaluation actualResponse = client.getEvaluation(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetEvaluationRequest actualRequest = (GetEvaluationRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, EvaluationName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1323,10 +1303,9 @@ public void getEvaluationExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]"); + EvaluationName name = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); - client.getEvaluation(formattedName); + client.getEvaluation(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1346,11 +1325,10 @@ public void searchEvaluationsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); String filter = "filter-1274492040"; - SearchEvaluationsPagedResponse pagedListResponse = - client.searchEvaluations(formattedParent, filter); + SearchEvaluationsPagedResponse pagedListResponse = client.searchEvaluations(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -1360,7 +1338,7 @@ public void searchEvaluationsTest() { Assert.assertEquals(1, actualRequests.size()); SearchEvaluationsRequest actualRequest = (SearchEvaluationsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, EvaluationName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1375,10 +1353,10 @@ public void searchEvaluationsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); String filter = "filter-1274492040"; - client.searchEvaluations(formattedParent, filter); + client.searchEvaluations(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1400,11 +1378,10 @@ public void searchExampleComparisonsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = - DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]"); + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); SearchExampleComparisonsPagedResponse pagedListResponse = - client.searchExampleComparisons(formattedParent); + client.searchExampleComparisons(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); @@ -1416,7 +1393,7 @@ public void searchExampleComparisonsTest() { SearchExampleComparisonsRequest actualRequest = (SearchExampleComparisonsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, EvaluationName.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1430,10 +1407,9 @@ public void searchExampleComparisonsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = - DataLabelingServiceClient.formatEvaluationName("[PROJECT]", "[DATASET]", "[EVALUATION]"); + EvaluationName parent = EvaluationName.of("[PROJECT]", "[DATASET]", "[EVALUATION]"); - client.searchExampleComparisons(formattedParent); + client.searchExampleComparisons(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1443,7 +1419,7 @@ public void searchExampleComparisonsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void createEvaluationJobTest() { - String name = "name3373707"; + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); String description = "description-1724546052"; String schedule = "schedule-697920873"; String modelVersion = "modelVersion-1669102142"; @@ -1451,7 +1427,7 @@ public void createEvaluationJobTest() { boolean labelMissingGroundTruth = false; EvaluationJob expectedResponse = EvaluationJob.newBuilder() - .setName(name) + .setName(name.toString()) .setDescription(description) .setSchedule(schedule) .setModelVersion(modelVersion) @@ -1460,17 +1436,17 @@ public void createEvaluationJobTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); EvaluationJob job = EvaluationJob.newBuilder().build(); - EvaluationJob actualResponse = client.createEvaluationJob(formattedParent, job); + EvaluationJob actualResponse = client.createEvaluationJob(parent, job); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateEvaluationJobRequest actualRequest = (CreateEvaluationJobRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(job, actualRequest.getJob()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1485,10 +1461,10 @@ public void createEvaluationJobExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); EvaluationJob job = EvaluationJob.newBuilder().build(); - client.createEvaluationJob(formattedParent, job); + client.createEvaluationJob(parent, job); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1498,7 +1474,7 @@ public void createEvaluationJobExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateEvaluationJobTest() { - String name = "name3373707"; + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); String description = "description-1724546052"; String schedule = "schedule-697920873"; String modelVersion = "modelVersion-1669102142"; @@ -1506,7 +1482,7 @@ public void updateEvaluationJobTest() { boolean labelMissingGroundTruth = false; EvaluationJob expectedResponse = EvaluationJob.newBuilder() - .setName(name) + .setName(name.toString()) .setDescription(description) .setSchedule(schedule) .setModelVersion(modelVersion) @@ -1553,7 +1529,7 @@ public void updateEvaluationJobExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getEvaluationJobTest() { - String name2 = "name2-1052831874"; + EvaluationJobName name2 = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); String description = "description-1724546052"; String schedule = "schedule-697920873"; String modelVersion = "modelVersion-1669102142"; @@ -1561,7 +1537,7 @@ public void getEvaluationJobTest() { boolean labelMissingGroundTruth = false; EvaluationJob expectedResponse = EvaluationJob.newBuilder() - .setName(name2) + .setName(name2.toString()) .setDescription(description) .setSchedule(schedule) .setModelVersion(modelVersion) @@ -1570,17 +1546,16 @@ public void getEvaluationJobTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - EvaluationJob actualResponse = client.getEvaluationJob(formattedName); + EvaluationJob actualResponse = client.getEvaluationJob(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetEvaluationJobRequest actualRequest = (GetEvaluationJobRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, EvaluationJobName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1594,10 +1569,9 @@ public void getEvaluationJobExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.getEvaluationJob(formattedName); + client.getEvaluationJob(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1610,16 +1584,15 @@ public void pauseEvaluationJobTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.pauseEvaluationJob(formattedName); + client.pauseEvaluationJob(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); PauseEvaluationJobRequest actualRequest = (PauseEvaluationJobRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, EvaluationJobName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1633,10 +1606,9 @@ public void pauseEvaluationJobExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.pauseEvaluationJob(formattedName); + client.pauseEvaluationJob(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1649,16 +1621,15 @@ public void resumeEvaluationJobTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.resumeEvaluationJob(formattedName); + client.resumeEvaluationJob(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); ResumeEvaluationJobRequest actualRequest = (ResumeEvaluationJobRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, EvaluationJobName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1672,10 +1643,9 @@ public void resumeEvaluationJobExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.resumeEvaluationJob(formattedName); + client.resumeEvaluationJob(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1688,16 +1658,15 @@ public void deleteEvaluationJobTest() { Empty expectedResponse = Empty.newBuilder().build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.deleteEvaluationJob(formattedName); + client.deleteEvaluationJob(name); List actualRequests = mockDataLabelingService.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteEvaluationJobRequest actualRequest = (DeleteEvaluationJobRequest) actualRequests.get(0); - Assert.assertEquals(formattedName, actualRequest.getName()); + Assert.assertEquals(name, EvaluationJobName.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1711,10 +1680,9 @@ public void deleteEvaluationJobExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedName = - DataLabelingServiceClient.formatEvaluationJobName("[PROJECT]", "[EVALUATION_JOB]"); + EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]"); - client.deleteEvaluationJob(formattedName); + client.deleteEvaluationJob(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception @@ -1734,11 +1702,10 @@ public void listEvaluationJobsTest() { .build(); mockDataLabelingService.addResponse(expectedResponse); - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - ListEvaluationJobsPagedResponse pagedListResponse = - client.listEvaluationJobs(formattedParent, filter); + ListEvaluationJobsPagedResponse pagedListResponse = client.listEvaluationJobs(parent, filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); @@ -1748,7 +1715,7 @@ public void listEvaluationJobsTest() { Assert.assertEquals(1, actualRequests.size()); ListEvaluationJobsRequest actualRequest = (ListEvaluationJobsRequest) actualRequests.get(0); - Assert.assertEquals(formattedParent, actualRequest.getParent()); + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1763,10 +1730,10 @@ public void listEvaluationJobsExceptionTest() throws Exception { mockDataLabelingService.addException(exception); try { - String formattedParent = DataLabelingServiceClient.formatProjectName("[PROJECT]"); + ProjectName parent = ProjectName.of("[PROJECT]"); String filter = "filter-1274492040"; - client.listEvaluationJobs(formattedParent, filter); + client.listEvaluationJobs(parent, filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception diff --git a/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 index cfec0343..8c43472d 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index eaa5f306..ccec591a 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index cb0641f6..7a07afb7 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2432,7 +2432,8 @@ public void deleteInstruction( * * *
-     * Gets an evaluation by resource name.
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
      * 
*/ public void getEvaluation( @@ -2446,8 +2447,7 @@ public void getEvaluation( * * *
-     * Searchs evaluations within a project. Supported filter: evaluation_job,
-     * evaluation_time.
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
      * 
*/ public void searchEvaluations( @@ -2461,9 +2461,9 @@ public void searchEvaluations( * * *
-     * Searchs example comparisons in evaluation, in format of examples
-     * of both ground truth and prediction(s). It is represented as a search with
-     * evaluation id.
+     * 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( @@ -2492,7 +2492,11 @@ public void createEvaluationJob( * * *
-     * Updates an evaluation job.
+     * 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( @@ -2520,8 +2524,8 @@ public void getEvaluationJob( * * *
-     * Pauses an evaluation job. Pausing a evaluation job that is already in
-     * PAUSED state will be a no-op.
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
      * 
*/ public void pauseEvaluationJob( @@ -2534,8 +2538,8 @@ public void pauseEvaluationJob( * * *
-     * Resumes a paused evaluation job. Deleted evaluation job can't be resumed.
-     * Resuming a running evaluation job will be a no-op.
+     * 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( @@ -3233,7 +3237,8 @@ public void deleteInstruction( * * *
-     * Gets an evaluation by resource name.
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
      * 
*/ public void getEvaluation( @@ -3250,8 +3255,7 @@ public void getEvaluation( * * *
-     * Searchs evaluations within a project. Supported filter: evaluation_job,
-     * evaluation_time.
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
      * 
*/ public void searchEvaluations( @@ -3268,9 +3272,9 @@ public void searchEvaluations( * * *
-     * Searchs example comparisons in evaluation, in format of examples
-     * of both ground truth and prediction(s). It is represented as a search with
-     * evaluation id.
+     * 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( @@ -3305,7 +3309,11 @@ public void createEvaluationJob( * * *
-     * Updates an evaluation job.
+     * 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( @@ -3339,8 +3347,8 @@ public void getEvaluationJob( * * *
-     * Pauses an evaluation job. Pausing a evaluation job that is already in
-     * PAUSED state will be a no-op.
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
      * 
*/ public void pauseEvaluationJob( @@ -3356,8 +3364,8 @@ public void pauseEvaluationJob( * * *
-     * Resumes a paused evaluation job. Deleted evaluation job can't be resumed.
-     * Resuming a running evaluation job will be a no-op.
+     * 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( @@ -3749,7 +3757,8 @@ public com.google.protobuf.Empty deleteInstruction( * * *
-     * Gets an evaluation by resource name.
+     * 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( @@ -3762,8 +3771,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation( * * *
-     * Searchs evaluations within a project. Supported filter: evaluation_job,
-     * evaluation_time.
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
      * 
*/ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations( @@ -3776,9 +3784,9 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEva * * *
-     * Searchs example comparisons in evaluation, in format of examples
-     * of both ground truth and prediction(s). It is represented as a search with
-     * evaluation id.
+     * 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 @@ -3805,7 +3813,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob( * * *
-     * Updates an evaluation job.
+     * 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( @@ -3831,8 +3843,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob( * * *
-     * Pauses an evaluation job. Pausing a evaluation job that is already in
-     * PAUSED state will be a no-op.
+     * 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( @@ -3845,8 +3857,8 @@ public com.google.protobuf.Empty pauseEvaluationJob( * * *
-     * Resumes a paused evaluation job. Deleted evaluation job can't be resumed.
-     * Resuming a running evaluation job will be a no-op.
+     * 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( @@ -4249,7 +4261,8 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Gets an evaluation by resource name.
+     * 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< @@ -4263,8 +4276,7 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Searchs evaluations within a project. Supported filter: evaluation_job,
-     * evaluation_time.
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -4278,9 +4290,9 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Searchs example comparisons in evaluation, in format of examples
-     * of both ground truth and prediction(s). It is represented as a search with
-     * evaluation id.
+     * 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< @@ -4311,7 +4323,11 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Updates an evaluation job.
+     * 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< @@ -4340,8 +4356,8 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Pauses an evaluation job. Pausing a evaluation job that is already in
-     * PAUSED state will be a no-op.
+     * 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 @@ -4355,8 +4371,8 @@ protected DataLabelingServiceFutureStub build( * * *
-     * Resumes a paused evaluation job. Deleted evaluation job can't be resumed.
-     * Resuming a running evaluation job will be a no-op.
+     * 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 diff --git a/proto-google-cloud-datalabeling-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-datalabeling-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 00000000..70db5bf2 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,66 @@ + + + + + 7012 + com/google/cloud/datalabeling/v1beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/datalabeling/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/datalabeling/v1beta1/*OrBuilder + boolean has*(*) + + + + + 6001 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig$HumanAnnotationRequestConfigCase + OBJECT_DETECTION_CONFIG + + + 6001 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig$HumanAnnotationRequestConfigCase + OBJECT_TRACKING_CONFIG + + + 6001 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig$HumanAnnotationRequestConfigCase + VIDEO_CLASSIFICATION_CONFIG + + + 6011 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig + OBJECT_DETECTION_CONFIG_FIELD_NUMBER + + + 6011 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig + OBJECT_TRACKING_CONFIG_FIELD_NUMBER + + + 6011 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig + VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER + + + 7002 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig* + * *ObjectDetectionConfig*(*) + + + 7002 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig* + * *ObjectTrackingConfig*(*) + + + 7002 + com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig* + * *VideoClassificationConfig*(*) + + diff --git a/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 index e2afa419..83c24d02 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 45f24cf3..11637558 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3265477c..c21880c0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 6f7e5824..089ec61c 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index c28efbf4..d1cd45c3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3756ddfc..4e608e9f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1977883c..7feecc23 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 6eeade39..0b92556d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ba7402b3..6685e29d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index d9894e61..489bed0d 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -130,146 +130,146 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/datalabeling/v1beta1/anno" + "tation.proto\022!google.cloud.datalabeling." - + "v1beta1\032\034google/api/annotations.proto\032;g" - + "oogle/cloud/datalabeling/v1beta1/annotat" - + "ion_spec_set.proto\0325google/cloud/datalab" - + "eling/v1beta1/data_payloads.proto\032\036googl" - + "e/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.datalabeling.v1beta1.An" - + "notationSource\022L\n\020annotation_value\030\003 \001(\013" - + "22.google.cloud.datalabeling.v1beta1.Ann" - + "otationValue\022R\n\023annotation_metadata\030\004 \001(" - + "\01325.google.cloud.datalabeling.v1beta1.An" - + "notationMetadata\022T\n\024annotation_sentiment" - + "\030\006 \001(\01626.google.cloud.datalabeling.v1bet" - + "a1.AnnotationSentiment\"\321\007\n\017AnnotationVal" - + "ue\022k\n\037image_classification_annotation\030\001 " - + "\001(\0132@.google.cloud.datalabeling.v1beta1." - + "ImageClassificationAnnotationH\000\022h\n\036image" - + "_bounding_poly_annotation\030\002 \001(\0132>.google" - + ".cloud.datalabeling.v1beta1.ImageBoundin" - + "gPolyAnnotationH\000\022_\n\031image_polyline_anno" - + "tation\030\010 \001(\0132:.google.cloud.datalabeling" - + ".v1beta1.ImagePolylineAnnotationH\000\022g\n\035im" - + "age_segmentation_annotation\030\t \001(\0132>.goog" - + "le.cloud.datalabeling.v1beta1.ImageSegme" - + "ntationAnnotationH\000\022i\n\036text_classificati" - + "on_annotation\030\003 \001(\0132?.google.cloud.datal" - + "abeling.v1beta1.TextClassificationAnnota" - + "tionH\000\022n\n!text_entity_extraction_annotat" - + "ion\030\n \001(\0132A.google.cloud.datalabeling.v1" - + "beta1.TextEntityExtractionAnnotationH\000\022k" - + "\n\037video_classification_annotation\030\004 \001(\0132" - + "@.google.cloud.datalabeling.v1beta1.Vide" - + "oClassificationAnnotationH\000\022l\n video_obj" - + "ect_tracking_annotation\030\005 \001(\0132@.google.c" - + "loud.datalabeling.v1beta1.VideoObjectTra" - + "ckingAnnotationH\000\022Y\n\026video_event_annotat" - + "ion\030\006 \001(\01327.google.cloud.datalabeling.v1" - + "beta1.VideoEventAnnotationH\000B\014\n\nvalue_ty" - + "pe\"k\n\035ImageClassificationAnnotation\022J\n\017a" - + "nnotation_spec\030\001 \001(\01321.google.cloud.data" - + "labeling.v1beta1.AnnotationSpec\"\036\n\006Verte" - + "x\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020NormalizedVer" - + "tex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n\014BoundingPol" - + "y\022;\n\010vertices\030\001 \003(\0132).google.cloud.datal" - + "abeling.v1beta1.Vertex\"j\n\026NormalizedBoun" - + "dingPoly\022P\n\023normalized_vertices\030\001 \003(\01323." - + "google.cloud.datalabeling.v1beta1.Normal" - + "izedVertex\"\242\002\n\033ImageBoundingPolyAnnotati" - + "on\022H\n\rbounding_poly\030\002 \001(\0132/.google.cloud" - + ".datalabeling.v1beta1.BoundingPolyH\000\022]\n\030" - + "normalized_bounding_poly\030\003 \001(\01329.google." - + "cloud.datalabeling.v1beta1.NormalizedBou" - + "ndingPolyH\000\022J\n\017annotation_spec\030\001 \001(\01321.g" - + "oogle.cloud.datalabeling.v1beta1.Annotat" - + "ionSpecB\016\n\014bounded_area\"G\n\010Polyline\022;\n\010v" - + "ertices\030\001 \003(\0132).google.cloud.datalabelin" - + "g.v1beta1.Vertex\"f\n\022NormalizedPolyline\022P" - + "\n\023normalized_vertices\030\001 \003(\01323.google.clo" - + "ud.datalabeling.v1beta1.NormalizedVertex" - + "\"\204\002\n\027ImagePolylineAnnotation\022?\n\010polyline" - + "\030\002 \001(\0132+.google.cloud.datalabeling.v1bet" - + "a1.PolylineH\000\022T\n\023normalized_polyline\030\003 \001" - + "(\01325.google.cloud.datalabeling.v1beta1.N" - + "ormalizedPolylineH\000\022J\n\017annotation_spec\030\001" - + " \001(\01321.google.cloud.datalabeling.v1beta1" - + ".AnnotationSpecB\006\n\004poly\"\242\002\n\033ImageSegment" - + "ationAnnotation\022o\n\021annotation_colors\030\001 \003" - + "(\0132T.google.cloud.datalabeling.v1beta1.I" - + "mageSegmentationAnnotation.AnnotationCol" - + "orsEntry\022\021\n\tmime_type\030\002 \001(\t\022\023\n\013image_byt" - + "es\030\003 \001(\014\032j\n\025AnnotationColorsEntry\022\013\n\003key" - + "\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.google.cloud.dat" - + "alabeling.v1beta1.AnnotationSpec:\0028\001\"j\n\034" - + "TextClassificationAnnotation\022J\n\017annotati" - + "on_spec\030\001 \001(\01321.google.cloud.datalabelin" - + "g.v1beta1.AnnotationSpec\"\276\001\n\036TextEntityE" - + "xtractionAnnotation\022J\n\017annotation_spec\030\001" - + " \001(\01321.google.cloud.datalabeling.v1beta1" - + ".AnnotationSpec\022P\n\022sequential_segment\030\002 " - + "\001(\01324.google.cloud.datalabeling.v1beta1." - + "SequentialSegment\"/\n\021SequentialSegment\022\r" - + "\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w\n\013TimeSegmen" - + "t\0224\n\021start_time_offset\030\001 \001(\0132\031.google.pr" - + "otobuf.Duration\0222\n\017end_time_offset\030\002 \001(\013" - + "2\031.google.protobuf.Duration\"\261\001\n\035VideoCla" - + "ssificationAnnotation\022D\n\014time_segment\030\001 " - + "\001(\0132..google.cloud.datalabeling.v1beta1." - + "TimeSegment\022J\n\017annotation_spec\030\002 \001(\01321.g" - + "oogle.cloud.datalabeling.v1beta1.Annotat" - + "ionSpec\"\376\001\n\023ObjectTrackingFrame\022H\n\rbound" - + "ing_poly\030\001 \001(\0132/.google.cloud.datalabeli" - + "ng.v1beta1.BoundingPolyH\000\022]\n\030normalized_" - + "bounding_poly\030\002 \001(\01329.google.cloud.datal" - + "abeling.v1beta1.NormalizedBoundingPolyH\000" - + "\022.\n\013time_offset\030\003 \001(\0132\031.google.protobuf." - + "DurationB\016\n\014bounded_area\"\211\002\n\035VideoObject" - + "TrackingAnnotation\022J\n\017annotation_spec\030\001 " - + "\001(\01321.google.cloud.datalabeling.v1beta1." - + "AnnotationSpec\022D\n\014time_segment\030\002 \001(\0132..g" - + "oogle.cloud.datalabeling.v1beta1.TimeSeg" - + "ment\022V\n\026object_tracking_frames\030\003 \003(\01326.g" - + "oogle.cloud.datalabeling.v1beta1.ObjectT" - + "rackingFrame\"\250\001\n\024VideoEventAnnotation\022J\n" - + "\017annotation_spec\030\001 \001(\01321.google.cloud.da" - + "talabeling.v1beta1.AnnotationSpec\022D\n\014tim" - + "e_segment\030\002 \001(\0132..google.cloud.datalabel" - + "ing.v1beta1.TimeSegment\"d\n\022AnnotationMet" - + "adata\022N\n\021operator_metadata\030\002 \001(\01323.googl" - + "e.cloud.datalabeling.v1beta1.OperatorMet" - + "adata\"]\n\020OperatorMetadata\022\r\n\005score\030\001 \001(\002" - + "\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013label_votes\030\003 \001" - + "(\005\022\020\n\010comments\030\004 \003(\t*C\n\020AnnotationSource" - + "\022!\n\035ANNOTATION_SOURCE_UNSPECIFIED\020\000\022\014\n\010O" - + "PERATOR\020\003*W\n\023AnnotationSentiment\022$\n ANNO" - + "TATION_SENTIMENT_UNSPECIFIED\020\000\022\014\n\010NEGATI" - + "VE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016AnnotationType\022\037\n" - + "\033ANNOTATION_TYPE_UNSPECIFIED\020\000\022#\n\037IMAGE_" - + "CLASSIFICATION_ANNOTATION\020\001\022!\n\035IMAGE_BOU" - + "NDING_BOX_ANNOTATION\020\002\022*\n&IMAGE_ORIENTED" - + "_BOUNDING_BOX_ANNOTATION\020\r\022\"\n\036IMAGE_BOUN" - + "DING_POLY_ANNOTATION\020\n\022\035\n\031IMAGE_POLYLINE" - + "_ANNOTATION\020\013\022!\n\035IMAGE_SEGMENTATION_ANNO" - + "TATION\020\014\022)\n%VIDEO_SHOTS_CLASSIFICATION_A" - + "NNOTATION\020\003\022$\n VIDEO_OBJECT_TRACKING_ANN" - + "OTATION\020\004\022%\n!VIDEO_OBJECT_DETECTION_ANNO" - + "TATION\020\005\022\032\n\026VIDEO_EVENT_ANNOTATION\020\006\022\"\n\036" - + "TEXT_CLASSIFICATION_ANNOTATION\020\010\022%\n!TEXT" - + "_ENTITY_EXTRACTION_ANNOTATION\020\t\022%\n!GENER" - + "AL_CLASSIFICATION_ANNOTATION\020\016Bx\n%com.go" - + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" - + "e.golang.org/genproto/googleapis/cloud/d" - + "atalabeling/v1beta1;datalabelingb\006proto3" + + "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\016Bx\n%com.google.cloud.datalabeling.v1be" + + "ta1P\001ZMgoogle.golang.org/genproto/google" + + "apis/cloud/datalabeling/v1beta1;datalabe" + + "lingb\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.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor = @@ -472,8 +472,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Score", "TotalVotes", "LabelVotes", "Comments", }); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } diff --git a/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 index a6b95dbd..bdf7cc11 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 55d33061..b6db7ca5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,8 @@ * * *
- * Specifies where is the answer from.
+ * Specifies where the annotation comes from (whether it was provided by a
+ * human labeler or a different source).
  * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSource} diff --git a/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 index a48e0a46..e0eacc9d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,10 @@ * * *
- * Container of information related to one annotation spec.
+ * Container of information related to one possible annotation that can be used
+ * in a labeling task. For example, an image classification task where images
+ * are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and
+ * an AnnotationSpec for `cat`.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpec} @@ -173,7 +176,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
    * Optional. User-provided description of the annotation specification.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 2; @@ -196,7 +199,7 @@ public java.lang.String getDescription() { * *
    * Optional. User-provided description of the annotation specification.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 2; @@ -387,7 +390,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Container of information related to one annotation spec.
+   * Container of information related to one possible annotation that can be used
+   * in a labeling task. For example, an image classification task where images
+   * are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and
+   * an AnnotationSpec for `cat`.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpec} @@ -661,7 +667,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. User-provided description of the annotation specification.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 2; @@ -684,7 +690,7 @@ public java.lang.String getDescription() { * *
      * Optional. User-provided description of the annotation specification.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 2; @@ -707,7 +713,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
      * Optional. User-provided description of the annotation specification.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 2; @@ -729,7 +735,7 @@ public Builder setDescription(java.lang.String value) { * *
      * Optional. User-provided description of the annotation specification.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 2; @@ -747,7 +753,7 @@ public Builder clearDescription() { * *
      * Optional. User-provided description of the annotation specification.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 2; diff --git a/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 index 0a7728b4..90a4007d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,7 +53,7 @@ public interface AnnotationSpecOrBuilder * *
    * Optional. User-provided description of the annotation specification.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 2; @@ -66,7 +66,7 @@ public interface AnnotationSpecOrBuilder * *
    * Optional. User-provided description of the annotation specification.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 2; diff --git a/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 index 4de232eb..feea3286 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,9 @@ * * *
- * AnnotationSpecSet is a collection of label definitions. For example, in
- * image classification tasks, we define a set of labels, this set is called
- * AnnotationSpecSet. AnnotationSpecSet is immutable upon creation.
+ * An AnnotationSpecSet is a collection of label definitions. For example, in
+ * image classification tasks, you define a set of possible labels for images as
+ * an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet} @@ -167,8 +167,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 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; @@ -190,8 +190,8 @@ public java.lang.String getName() { * * *
-   * Output only. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 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; @@ -216,8 +216,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. The display name for AnnotationSpecSet defined by user.
-   * Maximum of 64 characters.
+   * Required. The display name for AnnotationSpecSet that you define when you
+   * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; @@ -239,8 +239,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The display name for AnnotationSpecSet defined by user.
-   * Maximum of 64 characters.
+   * Required. The display name for AnnotationSpecSet that you define when you
+   * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; @@ -266,7 +266,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
    * Optional. User-provided description of the annotation specification set.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 3; @@ -289,7 +289,7 @@ public java.lang.String getDescription() { * *
    * Optional. User-provided description of the annotation specification set.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 3; @@ -314,7 +314,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -327,7 +328,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -340,7 +342,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -352,7 +355,8 @@ public int getAnnotationSpecsCount() { * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -364,7 +368,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -648,9 +653,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * AnnotationSpecSet is a collection of label definitions. For example, in
-   * image classification tasks, we define a set of labels, this set is called
-   * AnnotationSpecSet. AnnotationSpecSet is immutable upon creation.
+   * An AnnotationSpecSet is a collection of label definitions. For example, in
+   * image classification tasks, you define a set of possible labels for images as
+   * an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet} @@ -888,8 +893,8 @@ public Builder mergeFrom( * * *
-     * Output only. AnnotationSpecSet resource name, format:
-     * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+     * 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; @@ -911,8 +916,8 @@ public java.lang.String getName() { * * *
-     * Output only. AnnotationSpecSet resource name, format:
-     * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+     * 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; @@ -934,8 +939,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. AnnotationSpecSet resource name, format:
-     * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+     * 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; @@ -956,8 +961,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. AnnotationSpecSet resource name, format:
-     * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+     * 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; @@ -974,8 +979,8 @@ public Builder clearName() { * * *
-     * Output only. AnnotationSpecSet resource name, format:
-     * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+     * 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; @@ -999,8 +1004,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The display name for AnnotationSpecSet defined by user.
-     * Maximum of 64 characters.
+     * Required. The display name for AnnotationSpecSet that you define when you
+     * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; @@ -1022,8 +1027,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The display name for AnnotationSpecSet defined by user.
-     * Maximum of 64 characters.
+     * Required. The display name for AnnotationSpecSet that you define when you
+     * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; @@ -1045,8 +1050,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The display name for AnnotationSpecSet defined by user.
-     * Maximum of 64 characters.
+     * Required. The display name for AnnotationSpecSet that you define when you
+     * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; @@ -1067,8 +1072,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The display name for AnnotationSpecSet defined by user.
-     * Maximum of 64 characters.
+     * Required. The display name for AnnotationSpecSet that you define when you
+     * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; @@ -1085,8 +1090,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The display name for AnnotationSpecSet defined by user.
-     * Maximum of 64 characters.
+     * Required. The display name for AnnotationSpecSet that you define when you
+     * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; @@ -1111,7 +1116,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional. User-provided description of the annotation specification set.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 3; @@ -1134,7 +1139,7 @@ public java.lang.String getDescription() { * *
      * Optional. User-provided description of the annotation specification set.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 3; @@ -1157,7 +1162,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * *
      * Optional. User-provided description of the annotation specification set.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 3; @@ -1179,7 +1184,7 @@ public Builder setDescription(java.lang.String value) { * *
      * Optional. User-provided description of the annotation specification set.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 3; @@ -1197,7 +1202,7 @@ public Builder clearDescription() { * *
      * Optional. User-provided description of the annotation specification set.
-     * The description can be up to 10000 characters long.
+     * The description can be up to 10,000 characters long.
      * 
* * string description = 3; @@ -1238,7 +1243,8 @@ private void ensureAnnotationSpecsIsMutable() { * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1255,7 +1261,8 @@ private void ensureAnnotationSpecsIsMutable() { * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1271,7 +1278,8 @@ public int getAnnotationSpecsCount() { * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1287,7 +1295,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1310,7 +1319,8 @@ public Builder setAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1330,7 +1340,8 @@ public Builder setAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1352,7 +1363,8 @@ public Builder addAnnotationSpecs(com.google.cloud.datalabeling.v1beta1.Annotati * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1375,7 +1387,8 @@ public Builder addAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1395,7 +1408,8 @@ public Builder addAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1415,7 +1429,8 @@ public Builder addAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1435,7 +1450,8 @@ public Builder addAllAnnotationSpecs( * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1454,7 +1470,8 @@ public Builder clearAnnotationSpecs() { * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1473,7 +1490,8 @@ public Builder removeAnnotationSpecs(int index) { * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1486,7 +1504,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1503,7 +1522,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1520,7 +1540,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1534,7 +1555,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -1549,7 +1571,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio * * *
-     * Required. The actual spec set defined by the users.
+     * Required. The array of AnnotationSpecs that you define when you create the
+     * AnnotationSpecSet. These are the possible labels for the labeling task.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; diff --git a/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 index cbb65784..b498023e 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 5f1b2cce..83bcec55 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,8 +27,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Output only. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 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; @@ -40,8 +40,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Output only. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 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; @@ -54,8 +54,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The display name for AnnotationSpecSet defined by user.
-   * Maximum of 64 characters.
+   * Required. The display name for AnnotationSpecSet that you define when you
+   * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; @@ -67,8 +67,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The display name for AnnotationSpecSet defined by user.
-   * Maximum of 64 characters.
+   * Required. The display name for AnnotationSpecSet that you define when you
+   * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; @@ -82,7 +82,7 @@ public interface AnnotationSpecSetOrBuilder * *
    * Optional. User-provided description of the annotation specification set.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 3; @@ -95,7 +95,7 @@ public interface AnnotationSpecSetOrBuilder * *
    * Optional. User-provided description of the annotation specification set.
-   * The description can be up to 10000 characters long.
+   * The description can be up to 10,000 characters long.
    * 
* * string description = 3; @@ -108,7 +108,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -118,7 +119,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -128,7 +130,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -138,7 +141,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; @@ -149,7 +153,8 @@ public interface AnnotationSpecSetOrBuilder * * *
-   * Required. The actual spec set defined by the users.
+   * Required. The array of AnnotationSpecs that you define when you create the
+   * AnnotationSpecSet. These are the possible labels for the labeling task.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4; 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 index e4ecaf18..ea6697cf 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,22 +47,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n;google/cloud/datalabeling/v1beta1/anno" + "tation_spec_set.proto\022!google.cloud.data" + "labeling.v1beta1\032\034google/api/annotations" - + ".proto\"\265\001\n\021AnnotationSpecSet\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\020annotation_specs\030\004 \003(\01321.google" - + ".cloud.datalabeling.v1beta1.AnnotationSp" - + "ec\022\032\n\022blocking_resources\030\005 \003(\t\";\n\016Annota" - + "tionSpec\022\024\n\014display_name\030\001 \001(\t\022\023\n\013descri" - + "ption\030\002 \001(\tBx\n%com.google.cloud.datalabe" - + "ling.v1beta1P\001ZMgoogle.golang.org/genpro" - + "to/googleapis/cloud/datalabeling/v1beta1" - + ";datalabelingb\006proto3" + + ".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(\tBx\n%com.g" + + "oogle.cloud.datalabeling.v1beta1P\001ZMgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "datalabeling/v1beta1;datalabelingb\006proto" + + "3" }; 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); @@ -80,7 +85,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java index 4f8afaff..ff06f3d7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Classification annotations in an image.
+   * Classification annotations in an image. Allowed for continuous evaluation.
    * 
* * IMAGE_CLASSIFICATION_ANNOTATION = 1; @@ -36,7 +36,8 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Bounding box annotations in an image.
+   * Bounding box annotations in an image. A form of image object detection.
+   * Allowed for continuous evaluation.
    * 
* * IMAGE_BOUNDING_BOX_ANNOTATION = 2; @@ -127,7 +128,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Classification for text.
+   * Classification for text. Allowed for continuous evaluation.
    * 
* * TEXT_CLASSIFICATION_ANNOTATION = 8; @@ -147,7 +148,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * General classification.
+   * General classification. Allowed for continuous evaluation.
    * 
* * GENERAL_CLASSIFICATION_ANNOTATION = 14; @@ -162,7 +163,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Classification annotations in an image.
+   * Classification annotations in an image. Allowed for continuous evaluation.
    * 
* * IMAGE_CLASSIFICATION_ANNOTATION = 1; @@ -172,7 +173,8 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Bounding box annotations in an image.
+   * Bounding box annotations in an image. A form of image object detection.
+   * Allowed for continuous evaluation.
    * 
* * IMAGE_BOUNDING_BOX_ANNOTATION = 2; @@ -263,7 +265,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Classification for text.
+   * Classification for text. Allowed for continuous evaluation.
    * 
* * TEXT_CLASSIFICATION_ANNOTATION = 8; @@ -283,7 +285,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * General classification.
+   * General classification. Allowed for continuous evaluation.
    * 
* * GENERAL_CLASSIFICATION_ANNOTATION = 14; diff --git a/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 index 652c812d..fc8f9a1e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0c9a7758..2490ed61 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 2a1f546d..ec847f12 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ * * *
- * Records a failed attempt.
+ * Records a failed evaluation job run.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} @@ -158,24 +158,64 @@ public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; private java.util.List partialFailures_; - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public java.util.List getPartialFailuresList() { return partialFailures_; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public java.util.List getPartialFailuresOrBuilderList() { return partialFailures_; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public int getPartialFailuresCount() { return partialFailures_.size(); } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.Status getPartialFailures(int index) { return partialFailures_.get(index); } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { return partialFailures_.get(index); } @@ -359,7 +399,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Records a failed attempt.
+   * Records a failed evaluation job run.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} @@ -697,7 +737,15 @@ private void ensurePartialFailuresIsMutable() { com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> partialFailuresBuilder_; - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public java.util.List getPartialFailuresList() { if (partialFailuresBuilder_ == null) { return java.util.Collections.unmodifiableList(partialFailures_); @@ -705,7 +753,15 @@ public java.util.List getPartialFailuresList() { return partialFailuresBuilder_.getMessageList(); } } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public int getPartialFailuresCount() { if (partialFailuresBuilder_ == null) { return partialFailures_.size(); @@ -713,7 +769,15 @@ public int getPartialFailuresCount() { return partialFailuresBuilder_.getCount(); } } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.Status getPartialFailures(int index) { if (partialFailuresBuilder_ == null) { return partialFailures_.get(index); @@ -721,7 +785,15 @@ public com.google.rpc.Status getPartialFailures(int index) { return partialFailuresBuilder_.getMessage(index); } } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder setPartialFailures(int index, com.google.rpc.Status value) { if (partialFailuresBuilder_ == null) { if (value == null) { @@ -735,7 +807,15 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) { if (partialFailuresBuilder_ == null) { ensurePartialFailuresIsMutable(); @@ -746,7 +826,15 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder addPartialFailures(com.google.rpc.Status value) { if (partialFailuresBuilder_ == null) { if (value == null) { @@ -760,7 +848,15 @@ public Builder addPartialFailures(com.google.rpc.Status value) { } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder addPartialFailures(int index, com.google.rpc.Status value) { if (partialFailuresBuilder_ == null) { if (value == null) { @@ -774,7 +870,15 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) { if (partialFailuresBuilder_ == null) { ensurePartialFailuresIsMutable(); @@ -785,7 +889,15 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder builderForValue) { if (partialFailuresBuilder_ == null) { ensurePartialFailuresIsMutable(); @@ -796,7 +908,15 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder addAllPartialFailures( java.lang.Iterable values) { if (partialFailuresBuilder_ == null) { @@ -808,7 +928,15 @@ public Builder addAllPartialFailures( } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder clearPartialFailures() { if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); @@ -819,7 +947,15 @@ public Builder clearPartialFailures() { } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public Builder removePartialFailures(int index) { if (partialFailuresBuilder_ == null) { ensurePartialFailuresIsMutable(); @@ -830,11 +966,27 @@ public Builder removePartialFailures(int index) { } return this; } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.Status.Builder getPartialFailuresBuilder(int index) { return getPartialFailuresFieldBuilder().getBuilder(index); } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { if (partialFailuresBuilder_ == null) { return partialFailures_.get(index); @@ -842,7 +994,15 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { return partialFailuresBuilder_.getMessageOrBuilder(index); } } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public java.util.List getPartialFailuresOrBuilderList() { if (partialFailuresBuilder_ != null) { @@ -851,17 +1011,41 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { return java.util.Collections.unmodifiableList(partialFailures_); } } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public com.google.rpc.Status.Builder addPartialFailuresBuilder() { return getPartialFailuresFieldBuilder() .addBuilder(com.google.rpc.Status.getDefaultInstance()); } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * 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()); } - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+     * Details of errors that occurred.
+     * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ public java.util.List getPartialFailuresBuilderList() { return getPartialFailuresFieldBuilder().getBuilderList(); } diff --git a/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 index 98f096a8..401d8ea4 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,14 +38,54 @@ public interface AttemptOrBuilder /** .google.protobuf.Timestamp attempt_time = 1; */ com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder(); - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ java.util.List getPartialFailuresList(); - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ com.google.rpc.Status getPartialFailures(int index); - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ int getPartialFailuresCount(); - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ java.util.List getPartialFailuresOrBuilderList(); - /** repeated .google.rpc.Status partial_failures = 2; */ + /** + * + * + *
+   * Details of errors that occurred.
+   * 
+ * + * repeated .google.rpc.Status partial_failures = 2; + */ 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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java index 5d71cac3..5d64a43d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,9 @@ * * *
- * The BigQuery location for the input content.
+ * 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
+ * model version.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BigQuerySource} @@ -117,8 +119,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. BigQuery URI to a table, up to 2000 characters long.
-   * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 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
+   * creates a table at the URI with the correct schema when you create your
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+   * it must have the
+   * [correct
+   * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+   * Provide the table URI in the following format:
+   * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+   * [Learn
+   * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
    * 
* * string input_uri = 1; @@ -140,8 +151,17 @@ public java.lang.String getInputUri() { * * *
-   * Required. BigQuery URI to a table, up to 2000 characters long.
-   * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 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
+   * creates a table at the URI with the correct schema when you create your
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+   * it must have the
+   * [correct
+   * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+   * Provide the table URI in the following format:
+   * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+   * [Learn
+   * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
    * 
* * string input_uri = 1; @@ -323,7 +343,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The BigQuery location for the input content.
+   * 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
+   * model version.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BigQuerySource} @@ -483,8 +505,17 @@ public Builder mergeFrom( * * *
-     * Required. BigQuery URI to a table, up to 2000 characters long.
-     * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 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
+     * creates a table at the URI with the correct schema when you create your
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+     * it must have the
+     * [correct
+     * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+     * Provide the table URI in the following format:
+     * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+     * [Learn
+     * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
      * 
* * string input_uri = 1; @@ -506,8 +537,17 @@ public java.lang.String getInputUri() { * * *
-     * Required. BigQuery URI to a table, up to 2000 characters long.
-     * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 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
+     * creates a table at the URI with the correct schema when you create your
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+     * it must have the
+     * [correct
+     * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+     * Provide the table URI in the following format:
+     * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+     * [Learn
+     * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
      * 
* * string input_uri = 1; @@ -529,8 +569,17 @@ public com.google.protobuf.ByteString getInputUriBytes() { * * *
-     * Required. BigQuery URI to a table, up to 2000 characters long.
-     * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 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
+     * creates a table at the URI with the correct schema when you create your
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+     * it must have the
+     * [correct
+     * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+     * Provide the table URI in the following format:
+     * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+     * [Learn
+     * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
      * 
* * string input_uri = 1; @@ -551,8 +600,17 @@ public Builder setInputUri(java.lang.String value) { * * *
-     * Required. BigQuery URI to a table, up to 2000 characters long.
-     * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 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
+     * creates a table at the URI with the correct schema when you create your
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+     * it must have the
+     * [correct
+     * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+     * Provide the table URI in the following format:
+     * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+     * [Learn
+     * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
      * 
* * string input_uri = 1; @@ -569,8 +627,17 @@ public Builder clearInputUri() { * * *
-     * Required. BigQuery URI to a table, up to 2000 characters long.
-     * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 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
+     * creates a table at the URI with the correct schema when you create your
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+     * it must have the
+     * [correct
+     * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+     * Provide the table URI in the following format:
+     * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+     * [Learn
+     * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
      * 
* * string input_uri = 1; diff --git a/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 index ad2354fc..42db8dee 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,8 +27,17 @@ public interface BigQuerySourceOrBuilder * * *
-   * Required. BigQuery URI to a table, up to 2000 characters long.
-   * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 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
+   * creates a table at the URI with the correct schema when you create your
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+   * it must have the
+   * [correct
+   * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+   * Provide the table URI in the following format:
+   * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+   * [Learn
+   * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
    * 
* * string input_uri = 1; @@ -40,8 +49,17 @@ public interface BigQuerySourceOrBuilder * * *
-   * Required. BigQuery URI to a table, up to 2000 characters long.
-   * Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 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
+   * creates a table at the URI with the correct schema when you create your
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
+   * it must have the
+   * [correct
+   * schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
+   * Provide the table URI in the following format:
+   * "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
+   * [Learn
+   * more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
    * 
* * string input_uri = 1; diff --git a/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 index 8b90d1e6..4b99891d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,7 +113,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Minimize IoU required to consider 2 bounding boxes are matched.
+   * Minimum
+   * [intersection-over-union
+   * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+   * required for 2 bounding boxes to be considered a match. This must be a
+   * number between 0 and 1.
    * 
* * float iou_threshold = 1; @@ -456,7 +460,11 @@ public Builder mergeFrom( * * *
-     * Minimize IoU required to consider 2 bounding boxes are matched.
+     * Minimum
+     * [intersection-over-union
+     * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+     * required for 2 bounding boxes to be considered a match. This must be a
+     * number between 0 and 1.
      * 
* * float iou_threshold = 1; @@ -470,7 +478,11 @@ public float getIouThreshold() { * * *
-     * Minimize IoU required to consider 2 bounding boxes are matched.
+     * Minimum
+     * [intersection-over-union
+     * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+     * required for 2 bounding boxes to be considered a match. This must be a
+     * number between 0 and 1.
      * 
* * float iou_threshold = 1; @@ -488,7 +500,11 @@ public Builder setIouThreshold(float value) { * * *
-     * Minimize IoU required to consider 2 bounding boxes are matched.
+     * Minimum
+     * [intersection-over-union
+     * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+     * required for 2 bounding boxes to be considered a match. This must be a
+     * number between 0 and 1.
      * 
* * float iou_threshold = 1; diff --git a/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 index cd15ab29..c293d0b6 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,11 @@ public interface BoundingBoxEvaluationOptionsOrBuilder * * *
-   * Minimize IoU required to consider 2 bounding boxes are matched.
+   * Minimum
+   * [intersection-over-union
+   * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+   * required for 2 bounding boxes to be considered a match. This must be a
+   * number between 0 and 1.
    * 
* * float iou_threshold = 1; diff --git a/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 index 1e04cb60..96334772 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1309020f..ca97635f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -128,7 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -150,7 +150,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -175,7 +175,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -197,7 +197,7 @@ public java.lang.String getInstructionMessage() { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ @@ -556,7 +556,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -578,7 +578,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -600,7 +600,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -621,7 +621,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -638,7 +638,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -662,7 +662,7 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -684,7 +684,7 @@ public java.lang.String getInstructionMessage() { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ @@ -706,7 +706,7 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The instructionMessage to set. * @return This builder for chaining. @@ -727,7 +727,7 @@ public Builder setInstructionMessage(java.lang.String value) { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder clearInstructionMessage() { * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. diff --git a/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 index 30f8f77b..34d7131d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface BoundingPolyConfigOrBuilder * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface BoundingPolyConfigOrBuilder * Required. Annotation spec set resource name. *
* - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -55,7 +55,7 @@ public interface BoundingPolyConfigOrBuilder * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -67,7 +67,7 @@ public interface BoundingPolyConfigOrBuilder * Optional. Instruction message showed on contributors UI. *
* - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ diff --git a/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 index 0641873e..c27e35cf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index fbd3b8fe..0c29134d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index f94e5371..d4fbdeeb 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 56db6cb5..9ea82936 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,15 @@ package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ +/** + * + * + *
+ * Metrics calculated for a classification model.
+ * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} + */ public final class ClassificationMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) @@ -133,7 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -147,7 +156,8 @@ public boolean hasPrCurve() { * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -163,7 +173,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -175,6 +186,12 @@ 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. @@ -183,6 +200,12 @@ 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. @@ -192,7 +215,15 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix( ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+   * 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() { return getConfusionMatrix(); @@ -377,7 +408,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ + /** + * + * + *
+   * 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 // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) @@ -559,7 +598,8 @@ public Builder mergeFrom( * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -573,7 +613,8 @@ public boolean hasPrCurve() { * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -593,7 +634,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -615,7 +657,8 @@ public Builder setPrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) { * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -635,7 +678,8 @@ public Builder setPrCurve( * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -661,7 +705,8 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -681,7 +726,8 @@ public Builder clearPrCurve() { * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -695,7 +741,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.Builder getPrCurveBuilder() * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -713,7 +760,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde * * *
-     * Precision-recall curve.
+     * Precision-recall curve based on ground truth labels, predicted labels, and
+     * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -742,6 +790,12 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde 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. @@ -750,6 +804,12 @@ 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. @@ -763,7 +823,15 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix( return confusionMatrixBuilder_.getMessage(); } } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * Confusion matrix of predicted labels vs. ground truth labels.
+     * 
+ * + * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + */ public Builder setConfusionMatrix(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (value == null) { @@ -777,7 +845,15 @@ public Builder setConfusionMatrix(com.google.cloud.datalabeling.v1beta1.Confusio return this; } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * Confusion matrix of predicted labels vs. ground truth labels.
+     * 
+ * + * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + */ public Builder setConfusionMatrix( com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder builderForValue) { if (confusionMatrixBuilder_ == null) { @@ -789,7 +865,15 @@ public Builder setConfusionMatrix( return this; } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * 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) { if (confusionMatrixBuilder_ == null) { @@ -808,7 +892,15 @@ public Builder mergeConfusionMatrix( return this; } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * Confusion matrix of predicted labels vs. ground truth labels.
+     * 
+ * + * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + */ public Builder clearConfusionMatrix() { if (confusionMatrixBuilder_ == null) { confusionMatrix_ = null; @@ -820,14 +912,30 @@ public Builder clearConfusionMatrix() { return this; } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * 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() { onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * 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() { if (confusionMatrixBuilder_ != null) { @@ -838,7 +946,15 @@ public Builder clearConfusionMatrix() { : confusionMatrix_; } } - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+     * Confusion matrix of predicted labels vs. ground truth labels.
+     * 
+ * + * .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, diff --git a/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 index 60034f24..d8663deb 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,8 @@ public interface ClassificationMetricsOrBuilder * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -39,7 +40,8 @@ public interface ClassificationMetricsOrBuilder * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -51,7 +53,8 @@ public interface ClassificationMetricsOrBuilder * * *
-   * Precision-recall curve.
+   * Precision-recall curve based on ground truth labels, predicted labels, and
+   * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; @@ -59,17 +62,37 @@ 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(); - /** .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ + /** + * + * + *
+   * Confusion matrix of predicted labels vs. ground truth labels.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + */ com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder(); } diff --git a/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 index 7819390e..0c2b7875 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,9 @@ * * *
- * Confusion matrix of the model running the classification. Not applicable
- * when label filtering is specified in evaluation option.
+ * Confusion matrix of the model running the classification. Only applicable
+ * when the metrics entry aggregates multiple labels. Not applicable when the
+ * entry is for a single label.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix} @@ -132,7 +133,7 @@ public interface ConfusionMatrixEntryOrBuilder * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -144,7 +145,7 @@ public interface ConfusionMatrixEntryOrBuilder * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -156,7 +157,7 @@ public interface ConfusionMatrixEntryOrBuilder * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -167,7 +168,8 @@ public interface ConfusionMatrixEntryOrBuilder * * *
-     * Number of items being predicted as this label.
+     * 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; @@ -283,7 +285,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -297,7 +299,7 @@ public boolean hasAnnotationSpec() { * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -313,7 +315,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * The predicted annotation spec.
+     * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -329,7 +331,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * Number of items being predicted as this label.
+     * 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; @@ -713,7 +716,7 @@ public Builder mergeFrom( * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -727,7 +730,7 @@ public boolean hasAnnotationSpec() { * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -747,7 +750,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -769,7 +772,7 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -789,7 +792,7 @@ public Builder setAnnotationSpec( * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -816,7 +819,7 @@ public Builder mergeAnnotationSpec( * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -836,7 +839,7 @@ public Builder clearAnnotationSpec() { * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -851,7 +854,7 @@ public Builder clearAnnotationSpec() { * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -870,7 +873,7 @@ public Builder clearAnnotationSpec() { * * *
-       * The predicted annotation spec.
+       * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -897,7 +900,8 @@ public Builder clearAnnotationSpec() { * * *
-       * Number of items being predicted as this label.
+       * 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; @@ -911,7 +915,8 @@ public int getItemCount() { * * *
-       * Number of items being predicted as this label.
+       * 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; @@ -929,7 +934,8 @@ public Builder setItemCount(int value) { * * *
-       * Number of items being predicted as this label.
+       * 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; @@ -1008,7 +1014,7 @@ public interface RowOrBuilder * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1020,7 +1026,7 @@ public interface RowOrBuilder * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1032,7 +1038,7 @@ public interface RowOrBuilder * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1043,7 +1049,8 @@ public interface RowOrBuilder * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1056,7 +1063,8 @@ public interface RowOrBuilder * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1069,7 +1077,8 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEn * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1081,7 +1090,8 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEn * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1096,7 +1106,8 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEn * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1110,7 +1121,8 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEn * * *
-   * A row in the confusion matrix.
+   * A row in the confusion matrix. Each entry in this row has the same
+   * ground truth label.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row} @@ -1235,7 +1247,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1249,7 +1261,7 @@ public boolean hasAnnotationSpec() { * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1265,7 +1277,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * the original annotation spec of this row.
+     * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1283,7 +1295,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1299,7 +1312,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1316,7 +1330,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1330,7 +1345,8 @@ public int getEntriesCount() { * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1345,7 +1361,8 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr * * *
-     * Info describing predicted label distribution.
+     * A list of the confusion matrix entries. One entry for each possible
+     * predicted label.
      * 
* * @@ -1538,7 +1555,8 @@ protected Builder newBuilderForType( * * *
-     * A row in the confusion matrix.
+     * A row in the confusion matrix. Each entry in this row has the same
+     * ground truth label.
      * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row} @@ -1760,7 +1778,7 @@ public Builder mergeFrom( * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1774,7 +1792,7 @@ public boolean hasAnnotationSpec() { * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1794,7 +1812,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1816,7 +1834,7 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1836,7 +1854,7 @@ public Builder setAnnotationSpec( * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1863,7 +1881,7 @@ public Builder mergeAnnotationSpec( * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1883,7 +1901,7 @@ public Builder clearAnnotationSpec() { * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1898,7 +1916,7 @@ public Builder clearAnnotationSpec() { * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1917,7 +1935,7 @@ public Builder clearAnnotationSpec() { * * *
-       * the original annotation spec of this row.
+       * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1963,7 +1981,8 @@ private void ensureEntriesIsMutable() { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -1983,7 +2002,8 @@ private void ensureEntriesIsMutable() { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2001,7 +2021,8 @@ public int getEntriesCount() { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2020,7 +2041,8 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2046,7 +2068,8 @@ public Builder setEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2070,7 +2093,8 @@ public Builder setEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2095,7 +2119,8 @@ public Builder addEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2121,7 +2146,8 @@ public Builder addEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2144,7 +2170,8 @@ public Builder addEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2168,7 +2195,8 @@ public Builder addEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2193,7 +2221,8 @@ public Builder addAllEntries( * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2214,7 +2243,8 @@ public Builder clearEntries() { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2235,7 +2265,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2250,7 +2281,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2269,7 +2301,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2291,7 +2324,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2309,7 +2343,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2328,7 +2363,8 @@ public Builder removeEntries(int index) { * * *
-       * Info describing predicted label distribution.
+       * A list of the confusion matrix entries. One entry for each possible
+       * predicted label.
        * 
* * @@ -2604,8 +2640,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Confusion matrix of the model running the classification. Not applicable
-   * when label filtering is specified in evaluation option.
+   * Confusion matrix of the model running the classification. Only applicable
+   * when the metrics entry aggregates multiple labels. Not applicable when the
+   * entry is for a single label.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix} 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 index 2f6177f5..04ee7017 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index e07abf8f..12cb0566 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -139,7 +139,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -162,7 +164,9 @@ public java.lang.String getParent() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -189,7 +193,9 @@ public com.google.protobuf.ByteString getParentBytes() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the annotationSpecSet field is set. */ @@ -205,7 +211,9 @@ public boolean hasAnnotationSpecSet() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotationSpecSet. */ @@ -223,7 +231,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { @@ -594,7 +604,9 @@ public Builder mergeFrom( * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -617,7 +629,9 @@ public java.lang.String getParent() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -640,7 +654,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -662,7 +678,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -680,7 +698,9 @@ public Builder clearParent() { * projects/{project_id} *
* - * string parent = 1; + * + * 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. @@ -711,7 +731,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the annotationSpecSet field is set. */ @@ -727,7 +749,9 @@ public boolean hasAnnotationSpecSet() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotationSpecSet. */ @@ -749,7 +773,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnnotationSpecSet( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -774,7 +800,9 @@ public Builder setAnnotationSpecSet( * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .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) { @@ -796,7 +824,9 @@ public Builder setAnnotationSpecSet( * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAnnotationSpecSet( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -825,7 +855,9 @@ public Builder mergeAnnotationSpecSet( * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAnnotationSpecSet() { if (annotationSpecSetBuilder_ == null) { @@ -847,7 +879,9 @@ public Builder clearAnnotationSpecSet() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder getAnnotationSpecSetBuilder() { @@ -864,7 +898,9 @@ public Builder clearAnnotationSpecSet() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { @@ -885,7 +921,9 @@ public Builder clearAnnotationSpecSet() { * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .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, diff --git a/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 index e428fb5d..a7ea72c5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface CreateAnnotationSpecSetRequestOrBuilder * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface CreateAnnotationSpecSetRequestOrBuilder * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -59,7 +63,9 @@ public interface CreateAnnotationSpecSetRequestOrBuilder * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the annotationSpecSet field is set. */ @@ -73,7 +79,9 @@ public interface CreateAnnotationSpecSetRequestOrBuilder * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotationSpecSet. */ @@ -87,7 +95,9 @@ public interface CreateAnnotationSpecSetRequestOrBuilder * display_name. *
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2; + * + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java index 2b1d6b43..19423c00 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -160,7 +162,9 @@ public java.lang.String getParent() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -185,7 +189,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the dataset field is set. */ @@ -199,7 +205,9 @@ public boolean hasDataset() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The dataset. */ @@ -215,7 +223,9 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { return getDataset(); @@ -577,7 +587,9 @@ public Builder mergeFrom( * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -600,7 +612,9 @@ public java.lang.String getParent() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -623,7 +637,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -645,7 +661,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -663,7 +681,9 @@ public Builder clearParent() { * projects/{project_id} *
* - * string parent = 1; + * + * 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. @@ -692,7 +712,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the dataset field is set. */ @@ -706,7 +728,9 @@ public boolean hasDataset() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The dataset. */ @@ -726,7 +750,9 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .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) { @@ -748,7 +774,9 @@ public Builder setDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset( com.google.cloud.datalabeling.v1beta1.Dataset.Builder builderForValue) { @@ -768,7 +796,9 @@ public Builder setDataset( * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .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) { @@ -794,7 +824,9 @@ public Builder mergeDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -814,7 +846,9 @@ public Builder clearDataset() { * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetBuilder() { @@ -828,7 +862,9 @@ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetBuilder() * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { @@ -846,7 +882,9 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilde * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.Dataset, 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 index 935930cf..a3f7ab25 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface CreateDatasetRequestOrBuilder * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface CreateDatasetRequestOrBuilder * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,9 @@ public interface CreateDatasetRequestOrBuilder * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the dataset field is set. */ @@ -69,7 +75,9 @@ public interface CreateDatasetRequestOrBuilder * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The dataset. */ @@ -81,7 +89,9 @@ public interface CreateDatasetRequestOrBuilder * Required. The dataset to be created. *
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2; + * + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java index b6451915..e8b7dfc7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -134,11 +134,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Evaluation job resource parent, format:
-   * projects/{project_id}.
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -157,11 +159,13 @@ public java.lang.String getParent() { * * *
-   * Required. Evaluation job resource parent, format:
-   * projects/{project_id}.
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the job field is set. */ @@ -200,7 +206,9 @@ public boolean hasJob() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The job. */ @@ -216,7 +224,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { return getJob(); @@ -578,11 +588,13 @@ public Builder mergeFrom( * * *
-     * Required. Evaluation job resource parent, format:
-     * projects/{project_id}.
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -601,11 +613,13 @@ public java.lang.String getParent() { * * *
-     * Required. Evaluation job resource parent, format:
-     * projects/{project_id}.
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -624,11 +638,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Evaluation job resource parent, format:
-     * projects/{project_id}.
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -646,11 +662,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Evaluation job resource parent, format:
-     * projects/{project_id}.
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -664,11 +682,13 @@ public Builder clearParent() { * * *
-     * Required. Evaluation job resource parent, format:
-     * projects/{project_id}.
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * 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. @@ -697,7 +717,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the job field is set. */ @@ -711,7 +733,9 @@ public boolean hasJob() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The job. */ @@ -731,7 +755,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .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) { @@ -753,7 +779,9 @@ public Builder setJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -773,7 +801,9 @@ public Builder setJob( * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .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) { @@ -799,7 +829,9 @@ public Builder mergeJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob valu * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearJob() { if (jobBuilder_ == null) { @@ -819,7 +851,9 @@ public Builder clearJob() { * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getJobBuilder() { @@ -833,7 +867,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getJobBuilder * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { @@ -851,7 +887,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuil * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.EvaluationJob, 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 index 160afe80..fdfe981c 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,13 @@ public interface CreateEvaluationJobRequestOrBuilder * * *
-   * Required. Evaluation job resource parent, format:
-   * projects/{project_id}.
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -40,11 +42,13 @@ public interface CreateEvaluationJobRequestOrBuilder * * *
-   * Required. Evaluation job resource parent, format:
-   * projects/{project_id}.
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,9 @@ public interface CreateEvaluationJobRequestOrBuilder * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the job field is set. */ @@ -69,7 +75,9 @@ public interface CreateEvaluationJobRequestOrBuilder * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The job. */ @@ -81,7 +89,9 @@ public interface CreateEvaluationJobRequestOrBuilder * Required. The evaluation job to create. *
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2; + * + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java index c34b143e..a6e9c4aa 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d959ec91..c92a8d1b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 353b6539..4e81d08d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,7 +138,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -161,7 +163,9 @@ public java.lang.String getParent() { * projects/{project_id} *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. Instruction of how to perform the labeling task. *
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the instruction field is set. */ @@ -200,7 +206,9 @@ public boolean hasInstruction() { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The instruction. */ @@ -216,7 +224,9 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { return getInstruction(); @@ -581,7 +591,9 @@ public Builder mergeFrom( * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -604,7 +616,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -627,7 +641,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -649,7 +665,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -667,7 +685,9 @@ public Builder clearParent() { * projects/{project_id} * * - * string parent = 1; + * + * 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. @@ -696,7 +716,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the instruction field is set. */ @@ -710,7 +732,9 @@ public boolean hasInstruction() { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The instruction. */ @@ -730,7 +754,9 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .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) { @@ -752,7 +778,9 @@ public Builder setInstruction(com.google.cloud.datalabeling.v1beta1.Instruction * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstruction( com.google.cloud.datalabeling.v1beta1.Instruction.Builder builderForValue) { @@ -772,7 +800,9 @@ public Builder setInstruction( * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .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) { @@ -798,7 +828,9 @@ public Builder mergeInstruction(com.google.cloud.datalabeling.v1beta1.Instructio * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstruction() { if (instructionBuilder_ == null) { @@ -818,7 +850,9 @@ public Builder clearInstruction() { * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructionBuilder() { @@ -832,7 +866,9 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructionB * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { if (instructionBuilder_ != null) { @@ -850,7 +886,9 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.Instruction, 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 index e4703102..5292f185 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface CreateInstructionRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface CreateInstructionRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,9 @@ public interface CreateInstructionRequestOrBuilder * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the instruction field is set. */ @@ -69,7 +75,9 @@ public interface CreateInstructionRequestOrBuilder * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The instruction. */ @@ -81,7 +89,9 @@ public interface CreateInstructionRequestOrBuilder * Required. Instruction of how to perform the labeling task. * * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2; + * + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java index f4c8e3dd..29e71af4 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ * * *
+ * Deprecated: this instruction format is not supported any more.
  * Instruction from a CSV file.
  * 
* @@ -321,6 +322,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file.
    * 
* 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 index 6ab42e4f..670e7737 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 717a68a1..e5a2884d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index e3f40133..d83c89d8 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d97388c5..23eb0cf1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index c80e1a41..21f9f568 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,326 +215,393 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\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\0322googl" - + "e/cloud/datalabeling/v1beta1/annotation." - + "proto\032;google/cloud/datalabeling/v1beta1" - + "/annotation_spec_set.proto\032/google/cloud" - + "/datalabeling/v1beta1/dataset.proto\0322goo" - + "gle/cloud/datalabeling/v1beta1/evaluatio" - + "n.proto\0326google/cloud/datalabeling/v1bet" - + "a1/evaluation_job.proto\032?google/cloud/da" - + "talabeling/v1beta1/human_annotation_conf" - + "ig.proto\0323google/cloud/datalabeling/v1be" - + "ta1/instruction.proto\0322google/cloud/data" - + "labeling/v1beta1/operations.proto\032#googl" - + "e/longrunning/operations.proto\032\033google/p" - + "rotobuf/empty.proto\032 google/protobuf/fie" - + "ld_mask.proto\"c\n\024CreateDatasetRequest\022\016\n" - + "\006parent\030\001 \001(\t\022;\n\007dataset\030\002 \001(\0132*.google." - + "cloud.datalabeling.v1beta1.Dataset\"!\n\021Ge" - + "tDatasetRequest\022\014\n\004name\030\001 \001(\t\"\\\n\023ListDat" - + "asetsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002" - + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 " - + "\001(\t\"m\n\024ListDatasetsResponse\022<\n\010datasets\030" - + "\001 \003(\0132*.google.cloud.datalabeling.v1beta" - + "1.Dataset\022\027\n\017next_page_token\030\002 \001(\t\"$\n\024De" - + "leteDatasetRequest\022\014\n\004name\030\001 \001(\t\"\203\001\n\021Imp" - + "ortDataRequest\022\014\n\004name\030\001 \001(\t\022D\n\014input_co" - + "nfig\030\002 \001(\0132..google.cloud.datalabeling.v" - + "1beta1.InputConfig\022\032\n\022user_email_address" - + "\030\003 \001(\t\"\260\001\n\021ExportDataRequest\022\014\n\004name\030\001 \001" - + "(\t\022\031\n\021annotated_dataset\030\002 \001(\t\022\016\n\006filter\030" - + "\003 \001(\t\022F\n\routput_config\030\004 \001(\0132/.google.cl" - + "oud.datalabeling.v1beta1.OutputConfig\022\032\n" - + "\022user_email_address\030\005 \001(\t\"\"\n\022GetDataItem" - + "Request\022\014\n\004name\030\001 \001(\t\"]\n\024ListDataItemsRe" - + "quest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n" - + "\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"q\n\025" + + "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\022\014\n\004name\030\001 \001(\t\"e\n\034L" - + "istAnnotatedDatasetsRequest\022\016\n\006parent\030\001 " - + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022" - + "\n\npage_token\030\004 \001(\t\"\211\001\n\035ListAnnotatedData" - + "setsResponse\022O\n\022annotated_datasets\030\001 \003(\013" - + "23.google.cloud.datalabeling.v1beta1.Ann" - + "otatedDataset\022\027\n\017next_page_token\030\002 \001(\t\"-" - + "\n\035DeleteAnnotatedDatasetRequest\022\014\n\004name\030" - + "\001 \001(\t\"\315\005\n\021LabelImageRequest\022c\n\033image_cla" - + "ssification_config\030\004 \001(\0132<.google.cloud." - + "datalabeling.v1beta1.ImageClassification" - + "ConfigH\000\022U\n\024bounding_poly_config\030\005 \001(\01325" - + ".google.cloud.datalabeling.v1beta1.Bound" - + "ingPolyConfigH\000\022L\n\017polyline_config\030\006 \001(\013" - + "21.google.cloud.datalabeling.v1beta1.Pol" - + "ylineConfigH\000\022T\n\023segmentation_config\030\007 \001" - + "(\01325.google.cloud.datalabeling.v1beta1.S" - + "egmentationConfigH\000\022\016\n\006parent\030\001 \001(\t\022N\n\014b" - + "asic_config\030\002 \001(\01328.google.cloud.datalab" - + "eling.v1beta1.HumanAnnotationConfig\022M\n\007f" - + "eature\030\003 \001(\0162<.google.cloud.datalabeling" - + ".v1beta1.LabelImageRequest.Feature\"\226\001\n\007F" - + "eature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016CLASS" - + "IFICATION\020\001\022\020\n\014BOUNDING_BOX\020\002\022\031\n\025ORIENTE" - + "D_BOUNDING_BOX\020\006\022\021\n\rBOUNDING_POLY\020\003\022\014\n\010P" - + "OLYLINE\020\004\022\020\n\014SEGMENTATION\020\005B\020\n\016request_c" - + "onfig\"\247\005\n\021LabelVideoRequest\022c\n\033video_cla" - + "ssification_config\030\004 \001(\0132<.google.cloud." - + "datalabeling.v1beta1.VideoClassification" - + "ConfigH\000\022[\n\027object_detection_config\030\005 \001(" - + "\01328.google.cloud.datalabeling.v1beta1.Ob" - + "jectDetectionConfigH\000\022Y\n\026object_tracking" - + "_config\030\006 \001(\01327.google.cloud.datalabelin" - + "g.v1beta1.ObjectTrackingConfigH\000\022F\n\014even" - + "t_config\030\007 \001(\0132..google.cloud.datalabeli" - + "ng.v1beta1.EventConfigH\000\022\016\n\006parent\030\001 \001(\t" - + "\022N\n\014basic_config\030\002 \001(\01328.google.cloud.da" - + "talabeling.v1beta1.HumanAnnotationConfig" - + "\022M\n\007feature\030\003 \001(\0162<.google.cloud.datalab" - + "eling.v1beta1.LabelVideoRequest.Feature\"" - + "l\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016C" - + "LASSIFICATION\020\001\022\024\n\020OBJECT_DETECTION\020\002\022\023\n" - + "\017OBJECT_TRACKING\020\003\022\t\n\005EVENT\020\004B\020\n\016request" - + "_config\"\366\003\n\020LabelTextRequest\022a\n\032text_cla" - + "ssification_config\030\004 \001(\0132;.google.cloud." - + "datalabeling.v1beta1.TextClassificationC" - + "onfigH\000\022f\n\035text_entity_extraction_config" - + "\030\005 \001(\0132=.google.cloud.datalabeling.v1bet" - + "a1.TextEntityExtractionConfigH\000\022\016\n\006paren" - + "t\030\001 \001(\t\022N\n\014basic_config\030\002 \001(\01328.google.c" - + "loud.datalabeling.v1beta1.HumanAnnotatio" - + "nConfig\022L\n\007feature\030\006 \001(\0162;.google.cloud." - + "datalabeling.v1beta1.LabelTextRequest.Fe" - + "ature\"W\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020" - + "\000\022\027\n\023TEXT_CLASSIFICATION\020\001\022\032\n\026TEXT_ENTIT" - + "Y_EXTRACTION\020\002B\020\n\016request_config\"1\n\021GetE" - + "xampleRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 " - + "\001(\t\"\\\n\023ListExamplesRequest\022\016\n\006parent\030\001 \001" - + "(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" - + "\npage_token\030\004 \001(\t\"m\n\024ListExamplesRespons" - + "e\022<\n\010examples\030\001 \003(\0132*.google.cloud.datal" - + "abeling.v1beta1.Example\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\203\001\n\036CreateAnnotationSpecSetRequ" - + "est\022\016\n\006parent\030\001 \001(\t\022Q\n\023annotation_spec_s" - + "et\030\002 \001(\01324.google.cloud.datalabeling.v1b" - + "eta1.AnnotationSpecSet\"+\n\033GetAnnotationS" - + "pecSetRequest\022\014\n\004name\030\001 \001(\t\"f\n\035ListAnnot" - + "ationSpecSetsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006" - + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" - + "token\030\004 \001(\t\"\215\001\n\036ListAnnotationSpecSetsRe" - + "sponse\022R\n\024annotation_spec_sets\030\001 \003(\01324.g" - + "oogle.cloud.datalabeling.v1beta1.Annotat" - + "ionSpecSet\022\027\n\017next_page_token\030\002 \001(\t\".\n\036D" - + "eleteAnnotationSpecSetRequest\022\014\n\004name\030\001 " - + "\001(\t\"o\n\030CreateInstructionRequest\022\016\n\006paren" - + "t\030\001 \001(\t\022C\n\013instruction\030\002 \001(\0132..google.cl" - + "oud.datalabeling.v1beta1.Instruction\"%\n\025" - + "GetInstructionRequest\022\014\n\004name\030\001 \001(\t\"(\n\030D" - + "eleteInstructionRequest\022\014\n\004name\030\001 \001(\t\"`\n" - + "\027ListInstructionsRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\np" - + "age_token\030\004 \001(\t\"y\n\030ListInstructionsRespo" - + "nse\022D\n\014instructions\030\001 \003(\0132..google.cloud" - + ".datalabeling.v1beta1.Instruction\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"$\n\024GetEvaluationReque" - + "st\022\014\n\004name\030\001 \001(\t\"a\n\030SearchEvaluationsReq" - + "uest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\t" - + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"x\n\031S" - + "earchEvaluationsResponse\022B\n\013evaluations\030" - + "\001 \003(\0132-.google.cloud.datalabeling.v1beta" - + "1.Evaluation\022\027\n\017next_page_token\030\002 \001(\t\"X\n" - + "\037SearchExampleComparisonsRequest\022\016\n\006pare" - + "nt\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"\333\002\n SearchExampleComparisonsResp" - + "onse\022r\n\023example_comparisons\030\001 \003(\0132U.goog" - + "le.cloud.datalabeling.v1beta1.SearchExam" - + "pleComparisonsResponse.ExampleComparison" - + "\022\027\n\017next_page_token\030\002 \001(\t\032\251\001\n\021ExampleCom" - + "parison\022H\n\024ground_truth_example\030\001 \001(\0132*." - + "google.cloud.datalabeling.v1beta1.Exampl" - + "e\022J\n\026model_created_examples\030\002 \003(\0132*.goog" - + "le.cloud.datalabeling.v1beta1.Example\"k\n" - + "\032CreateEvaluationJobRequest\022\016\n\006parent\030\001 " - + "\001(\t\022=\n\003job\030\002 \001(\01320.google.cloud.datalabe" - + "ling.v1beta1.EvaluationJob\"\227\001\n\032UpdateEva" - + "luationJobRequest\022H\n\016evaluation_job\030\001 \001(" - + "\01320.google.cloud.datalabeling.v1beta1.Ev" - + "aluationJob\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\'\n\027GetEvaluationJob" - + "Request\022\014\n\004name\030\001 \001(\t\")\n\031PauseEvaluation" - + "JobRequest\022\014\n\004name\030\001 \001(\t\"*\n\032ResumeEvalua" - + "tionJobRequest\022\014\n\004name\030\001 \001(\t\"*\n\032DeleteEv" - + "aluationJobRequest\022\014\n\004name\030\001 \001(\t\"b\n\031List" - + "EvaluationJobsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n" - + "\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage" - + "_token\030\004 \001(\t\"\200\001\n\032ListEvaluationJobsRespo" - + "nse\022I\n\017evaluation_jobs\030\001 \003(\01320.google.cl" - + "oud.datalabeling.v1beta1.EvaluationJob\022\027" - + "\n\017next_page_token\030\002 \001(\t2\3721\n\023DataLabeling" - + "Service\022\246\001\n\rCreateDataset\0227.google.cloud" - + ".datalabeling.v1beta1.CreateDatasetReque" - + "st\032*.google.cloud.datalabeling.v1beta1.D" - + "ataset\"0\202\323\344\223\002*\"%/v1beta1/{parent=project" - + "s/*}/datasets:\001*\022\235\001\n\nGetDataset\0224.google" - + ".cloud.datalabeling.v1beta1.GetDatasetRe" - + "quest\032*.google.cloud.datalabeling.v1beta" - + "1.Dataset\"-\202\323\344\223\002\'\022%/v1beta1/{name=projec" - + "ts/*/datasets/*}\022\256\001\n\014ListDatasets\0226.goog" - + "le.cloud.datalabeling.v1beta1.ListDatase" - + "tsRequest\0327.google.cloud.datalabeling.v1" - + "beta1.ListDatasetsResponse\"-\202\323\344\223\002\'\022%/v1b" - + "eta1/{parent=projects/*}/datasets\022\217\001\n\rDe" - + "leteDataset\0227.google.cloud.datalabeling." - + "v1beta1.DeleteDatasetRequest\032\026.google.pr" - + "otobuf.Empty\"-\202\323\344\223\002\'*%/v1beta1/{name=pro" - + "jects/*/datasets/*}\022\236\001\n\nImportData\0224.goo" - + "gle.cloud.datalabeling.v1beta1.ImportDat" - + "aRequest\032\035.google.longrunning.Operation\"" - + ";\202\323\344\223\0025\"0/v1beta1/{name=projects/*/datas" - + "ets/*}:importData:\001*\022\236\001\n\nExportData\0224.go" - + "ogle.cloud.datalabeling.v1beta1.ExportDa" - + "taRequest\032\035.google.longrunning.Operation" - + "\";\202\323\344\223\0025\"0/v1beta1/{name=projects/*/data" - + "sets/*}:exportData:\001*\022\254\001\n\013GetDataItem\0225." - + "google.cloud.datalabeling.v1beta1.GetDat" - + "aItemRequest\032+.google.cloud.datalabeling" - + ".v1beta1.DataItem\"9\202\323\344\223\0023\0221/v1beta1/{nam" - + "e=projects/*/datasets/*/dataItems/*}\022\275\001\n" - + "\rListDataItems\0227.google.cloud.datalabeli" - + "ng.v1beta1.ListDataItemsRequest\0328.google" - + ".cloud.datalabeling.v1beta1.ListDataItem" - + "sResponse\"9\202\323\344\223\0023\0221/v1beta1/{parent=proj" - + "ects/*/datasets/*}/dataItems\022\314\001\n\023GetAnno" - + "tatedDataset\022=.google.cloud.datalabeling" - + ".v1beta1.GetAnnotatedDatasetRequest\0323.go" + + "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\"A\202\323\344\223\002;\0229/v1beta1/{name=project" - + "s/*/datasets/*/annotatedDatasets/*}\022\335\001\n\025" - + "ListAnnotatedDatasets\022?.google.cloud.dat" - + "alabeling.v1beta1.ListAnnotatedDatasetsR" - + "equest\032@.google.cloud.datalabeling.v1bet" - + "a1.ListAnnotatedDatasetsResponse\"A\202\323\344\223\002;" - + "\0229/v1beta1/{parent=projects/*/datasets/*" - + "}/annotatedDatasets\022\265\001\n\026DeleteAnnotatedD" - + "ataset\022@.google.cloud.datalabeling.v1bet" - + "a1.DeleteAnnotatedDatasetRequest\032\026.googl" - + "e.protobuf.Empty\"A\202\323\344\223\002;*9/v1beta1/{name" - + "=projects/*/datasets/*/annotatedDatasets" - + "/*}\022\241\001\n\nLabelImage\0224.google.cloud.datala" - + "beling.v1beta1.LabelImageRequest\032\035.googl" - + "e.longrunning.Operation\">\202\323\344\223\0028\"3/v1beta" - + "1/{parent=projects/*/datasets/*}/image:l" - + "abel:\001*\022\241\001\n\nLabelVideo\0224.google.cloud.da" - + "talabeling.v1beta1.LabelVideoRequest\032\035.g" - + "oogle.longrunning.Operation\">\202\323\344\223\0028\"3/v1" - + "beta1/{parent=projects/*/datasets/*}/vid" - + "eo:label:\001*\022\236\001\n\tLabelText\0223.google.cloud" - + ".datalabeling.v1beta1.LabelTextRequest\032\035" - + ".google.longrunning.Operation\"=\202\323\344\223\0027\"2/" - + "v1beta1/{parent=projects/*/datasets/*}/t" - + "ext:label:\001*\022\274\001\n\nGetExample\0224.google.clo" - + "ud.datalabeling.v1beta1.GetExampleReques" - + "t\032*.google.cloud.datalabeling.v1beta1.Ex" - + "ample\"L\202\323\344\223\002F\022D/v1beta1/{name=projects/*" - + "/datasets/*/annotatedDatasets/*/examples" - + "/*}\022\315\001\n\014ListExamples\0226.google.cloud.data" - + "labeling.v1beta1.ListExamplesRequest\0327.g" - + "oogle.cloud.datalabeling.v1beta1.ListExa" - + "mplesResponse\"L\202\323\344\223\002F\022D/v1beta1/{parent=" - + "projects/*/datasets/*/annotatedDatasets/" - + "*}/examples\022\316\001\n\027CreateAnnotationSpecSet\022" - + "A.google.cloud.datalabeling.v1beta1.Crea" - + "teAnnotationSpecSetRequest\0324.google.clou" - + "d.datalabeling.v1beta1.AnnotationSpecSet" - + "\":\202\323\344\223\0024\"//v1beta1/{parent=projects/*}/a" - + "nnotationSpecSets:\001*\022\305\001\n\024GetAnnotationSp" + + "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\"7\202\323\344\223\0021\022//v1beta1/{name=projects/*/a" - + "nnotationSpecSets/*}\022\326\001\n\026ListAnnotationS" - + "pecSets\022@.google.cloud.datalabeling.v1be" - + "ta1.ListAnnotationSpecSetsRequest\032A.goog" - + "le.cloud.datalabeling.v1beta1.ListAnnota" - + "tionSpecSetsResponse\"7\202\323\344\223\0021\022//v1beta1/{" - + "parent=projects/*}/annotationSpecSets\022\255\001" - + "\n\027DeleteAnnotationSpecSet\022A.google.cloud" - + ".datalabeling.v1beta1.DeleteAnnotationSp" - + "ecSetRequest\032\026.google.protobuf.Empty\"7\202\323" - + "\344\223\0021*//v1beta1/{name=projects/*/annotati" - + "onSpecSets/*}\022\245\001\n\021CreateInstruction\022;.go" - + "ogle.cloud.datalabeling.v1beta1.CreateIn" - + "structionRequest\032\035.google.longrunning.Op" - + "eration\"4\202\323\344\223\002.\")/v1beta1/{parent=projec" - + "ts/*}/instructions:\001*\022\255\001\n\016GetInstruction" - + "\0228.google.cloud.datalabeling.v1beta1.Get" - + "InstructionRequest\032..google.cloud.datala" - + "beling.v1beta1.Instruction\"1\202\323\344\223\002+\022)/v1b" - + "eta1/{name=projects/*/instructions/*}\022\276\001" - + "\n\020ListInstructions\022:.google.cloud.datala" - + "beling.v1beta1.ListInstructionsRequest\032;" - + ".google.cloud.datalabeling.v1beta1.ListI" - + "nstructionsResponse\"1\202\323\344\223\002+\022)/v1beta1/{p" - + "arent=projects/*}/instructions\022\233\001\n\021Delet" - + "eInstruction\022;.google.cloud.datalabeling" - + ".v1beta1.DeleteInstructionRequest\032\026.goog" - + "le.protobuf.Empty\"1\202\323\344\223\002+*)/v1beta1/{nam" - + "e=projects/*/instructions/*}\022\264\001\n\rGetEval" - + "uation\0227.google.cloud.datalabeling.v1bet" - + "a1.GetEvaluationRequest\032-.google.cloud.d" - + "atalabeling.v1beta1.Evaluation\";\202\323\344\223\0025\0223" - + "/v1beta1/{name=projects/*/datasets/*/eva" - + "luations/*}\022\307\001\n\021SearchEvaluations\022;.goog" - + "le.cloud.datalabeling.v1beta1.SearchEval" - + "uationsRequest\032<.google.cloud.datalabeli" - + "ng.v1beta1.SearchEvaluationsResponse\"7\202\323" - + "\344\223\0021\022//v1beta1/{parent=projects/*}/evalu" - + "ations:search\022\377\001\n\030SearchExampleCompariso" - + "ns\022B.google.cloud.datalabeling.v1beta1.S" - + "earchExampleComparisonsRequest\032C.google." - + "cloud.datalabeling.v1beta1.SearchExample" - + "ComparisonsResponse\"Z\202\323\344\223\002T\"O/v1beta1/{p" - + "arent=projects/*/datasets/*/evaluations/" - + "*}/exampleComparisons:search:\001*\022\276\001\n\023Crea" - + "teEvaluationJob\022=.google.cloud.datalabel" - + "ing.v1beta1.CreateEvaluationJobRequest\0320" - + ".google.cloud.datalabeling.v1beta1.Evalu" - + "ationJob\"6\202\323\344\223\0020\"+/v1beta1/{parent=proje" - + "cts/*}/evaluationJobs:\001*\022\332\001\n\023UpdateEvalu" - + "ationJob\022=.google.cloud.datalabeling.v1b" - + "eta1.UpdateEvaluationJobRequest\0320.google" - + ".cloud.datalabeling.v1beta1.EvaluationJo" - + "b\"R\202\323\344\223\002L2:/v1beta1/{evaluation_job.name" - + "=projects/*/evaluationJobs/*}:\016evaluatio" - + "n_job\022\265\001\n\020GetEvaluationJob\022:.google.clou" - + "d.datalabeling.v1beta1.GetEvaluationJobR" - + "equest\0320.google.cloud.datalabeling.v1bet" - + "a1.EvaluationJob\"3\202\323\344\223\002-\022+/v1beta1/{name" - + "=projects/*/evaluationJobs/*}\022\250\001\n\022PauseE" - + "valuationJob\022<.google.cloud.datalabeling" - + ".v1beta1.PauseEvaluationJobRequest\032\026.goo" - + "gle.protobuf.Empty\"<\202\323\344\223\0026\"1/v1beta1/{na" - + "me=projects/*/evaluationJobs/*}:pause:\001*" - + "\022\253\001\n\023ResumeEvaluationJob\022=.google.cloud." - + "datalabeling.v1beta1.ResumeEvaluationJob" - + "Request\032\026.google.protobuf.Empty\"=\202\323\344\223\0027\"" - + "2/v1beta1/{name=projects/*/evaluationJob" - + "s/*}:resume:\001*\022\241\001\n\023DeleteEvaluationJob\022=" - + ".google.cloud.datalabeling.v1beta1.Delet" - + "eEvaluationJobRequest\032\026.google.protobuf." - + "Empty\"3\202\323\344\223\002-*+/v1beta1/{name=projects/*" - + "/evaluationJobs/*}\022\306\001\n\022ListEvaluationJob" - + "s\022<.google.cloud.datalabeling.v1beta1.Li" - + "stEvaluationJobsRequest\032=.google.cloud.d" - + "atalabeling.v1beta1.ListEvaluationJobsRe" - + "sponse\"3\202\323\344\223\002-\022+/v1beta1/{parent=project" - + "s/*}/evaluationJobs\032O\312A\033datalabeling.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformBx\n%com.google.cloud" - + ".datalabeling.v1beta1P\001ZMgoogle.golang.o" - + "rg/genproto/googleapis/cloud/datalabelin" - + "g/v1beta1;datalabelingb\006proto3" + + "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-platformBx\n%com.google.clo" + + "ud.datalabeling.v1beta1P\001ZMgoogle.golang" + + ".org/genproto/googleapis/cloud/datalabel" + + "ing/v1beta1;datalabelingb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -542,14 +609,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.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.cloud.datalabeling.v1beta1.Operations.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -930,20 +997,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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.cloud.datalabeling.v1beta1.AnnotationOuterClass.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.cloud.datalabeling.v1beta1.Operations.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); 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 index cac24d29..2d990b69 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 741b3354..071c7507 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,26 +22,74 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { /** DATA_TYPE_UNSPECIFIED = 0; */ DATA_TYPE_UNSPECIFIED(0), - /** IMAGE = 1; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * IMAGE = 1; + */ IMAGE(1), /** VIDEO = 2; */ VIDEO(2), - /** TEXT = 4; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * TEXT = 4; + */ TEXT(4), - /** GENERAL_DATA = 6; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * GENERAL_DATA = 6; + */ GENERAL_DATA(6), UNRECOGNIZED(-1), ; /** DATA_TYPE_UNSPECIFIED = 0; */ public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0; - /** IMAGE = 1; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * IMAGE = 1; + */ public static final int IMAGE_VALUE = 1; /** VIDEO = 2; */ public static final int VIDEO_VALUE = 2; - /** TEXT = 4; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * TEXT = 4; + */ public static final int TEXT_VALUE = 4; - /** GENERAL_DATA = 6; */ + /** + * + * + *
+   * Allowed for continuous evaluation.
+   * 
+ * + * GENERAL_DATA = 6; + */ public static final int GENERAL_DATA_VALUE = 6; public final int getNumber() { diff --git a/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 index 9a4ab6da..8e236cfd 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index cb58ad5b..e1698312 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 75aa4888..daa8a150 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 102bfc78..6f8d2009 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -98,113 +98,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n/google/cloud/datalabeling/v1beta1/data" + "set.proto\022!google.cloud.datalabeling.v1b" - + "eta1\032\034google/api/annotations.proto\0322goog" - + "le/cloud/datalabeling/v1beta1/annotation" - + ".proto\0325google/cloud/datalabeling/v1beta" - + "1/data_payloads.proto\032?google/cloud/data" - + "labeling/v1beta1/human_annotation_config" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\357\001\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" - + "e\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013create_t" - + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n" - + "\rinput_configs\030\005 \003(\0132..google.cloud.data" - + "labeling.v1beta1.InputConfig\022\032\n\022blocking" - + "_resources\030\006 \003(\t\022\027\n\017data_item_count\030\007 \001(" - + "\003\"\361\003\n\013InputConfig\022H\n\rtext_metadata\030\006 \001(\013" - + "2/.google.cloud.datalabeling.v1beta1.Tex" - + "tMetadataH\000\022B\n\ngcs_source\030\002 \001(\0132,.google" - + ".cloud.datalabeling.v1beta1.GcsSourceH\001\022" - + "L\n\017bigquery_source\030\005 \001(\01321.google.cloud." - + "datalabeling.v1beta1.BigQuerySourceH\001\022>\n" - + "\tdata_type\030\001 \001(\0162+.google.cloud.datalabe" - + "ling.v1beta1.DataType\022J\n\017annotation_type" - + "\030\003 \001(\01621.google.cloud.datalabeling.v1bet" - + "a1.AnnotationType\022Z\n\027classification_meta" - + "data\030\004 \001(\01329.google.cloud.datalabeling.v" - + "1beta1.ClassificationMetadataB\024\n\022data_ty" - + "pe_metadataB\010\n\006source\"%\n\014TextMetadata\022\025\n" - + "\rlanguage_code\030\001 \001(\t\"0\n\026ClassificationMe" - + "tadata\022\026\n\016is_multi_label\030\001 \001(\010\"1\n\tGcsSou" - + "rce\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(" - + "\t\"#\n\016BigQuerySource\022\021\n\tinput_uri\030\001 \001(\t\"\306" - + "\001\n\014OutputConfig\022L\n\017gcs_destination\030\001 \001(\013" - + "21.google.cloud.datalabeling.v1beta1.Gcs" - + "DestinationH\000\022Y\n\026gcs_folder_destination\030" - + "\002 \001(\01327.google.cloud.datalabeling.v1beta" - + "1.GcsFolderDestinationH\000B\r\n\013destination\"" - + "7\n\016GcsDestination\022\022\n\noutput_uri\030\001 \001(\t\022\021\n" - + "\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDestination" - + "\022\031\n\021output_folder_uri\030\001 \001(\t\"\377\001\n\010DataItem" - + "\022H\n\rimage_payload\030\002 \001(\0132/.google.cloud.d" - + "atalabeling.v1beta1.ImagePayloadH\000\022F\n\014te" - + "xt_payload\030\003 \001(\0132..google.cloud.datalabe" - + "ling.v1beta1.TextPayloadH\000\022H\n\rvideo_payl" - + "oad\030\004 \001(\0132/.google.cloud.datalabeling.v1" - + "beta1.VideoPayloadH\000\022\014\n\004name\030\001 \001(\tB\t\n\007pa" - + "yload\"\377\003\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t" - + "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\t " - + "\001(\t\022N\n\021annotation_source\030\003 \001(\01623.google." - + "cloud.datalabeling.v1beta1.AnnotationSou" - + "rce\022J\n\017annotation_type\030\010 \001(\01621.google.cl" - + "oud.datalabeling.v1beta1.AnnotationType\022" - + "\025\n\rexample_count\030\004 \001(\003\022\037\n\027completed_exam" - + "ple_count\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.g" - + "oogle.cloud.datalabeling.v1beta1.LabelSt" - + "ats\022/\n\013create_time\030\007 \001(\0132\032.google.protob" - + "uf.Timestamp\022M\n\010metadata\030\n \001(\0132;.google." - + "cloud.datalabeling.v1beta1.AnnotatedData" - + "setMetadata\022\032\n\022blocking_resources\030\013 \003(\t\"" - + "\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?." - + "google.cloud.datalabeling.v1beta1.LabelS" - + "tats.ExampleCountEntry\0323\n\021ExampleCountEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n\030" - + "AnnotatedDatasetMetadata\022c\n\033image_classi" - + "fication_config\030\002 \001(\0132<.google.cloud.dat" - + "alabeling.v1beta1.ImageClassificationCon" - + "figH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.go" - + "ogle.cloud.datalabeling.v1beta1.Bounding" - + "PolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321." - + "google.cloud.datalabeling.v1beta1.Polyli" - + "neConfigH\000\022T\n\023segmentation_config\030\005 \001(\0132" - + "5.google.cloud.datalabeling.v1beta1.Segm" - + "entationConfigH\000\022c\n\033video_classification" - + "_config\030\006 \001(\0132<.google.cloud.datalabelin" - + "g.v1beta1.VideoClassificationConfigH\000\022[\n" - + "\027object_detection_config\030\007 \001(\01328.google." - + "cloud.datalabeling.v1beta1.ObjectDetecti" - + "onConfigH\000\022Y\n\026object_tracking_config\030\010 \001" - + "(\01327.google.cloud.datalabeling.v1beta1.O" - + "bjectTrackingConfigH\000\022F\n\014event_config\030\t " - + "\001(\0132..google.cloud.datalabeling.v1beta1." - + "EventConfigH\000\022a\n\032text_classification_con" - + "fig\030\n \001(\0132;.google.cloud.datalabeling.v1" - + "beta1.TextClassificationConfigH\000\022f\n\035text" - + "_entity_extraction_config\030\013 \001(\0132=.google" - + ".cloud.datalabeling.v1beta1.TextEntityEx" - + "tractionConfigH\000\022Y\n\027human_annotation_con" - + "fig\030\001 \001(\01328.google.cloud.datalabeling.v1" - + "beta1.HumanAnnotationConfigB\033\n\031annotatio" - + "n_request_config\"\302\002\n\007Example\022H\n\rimage_pa" - + "yload\030\002 \001(\0132/.google.cloud.datalabeling." - + "v1beta1.ImagePayloadH\000\022F\n\014text_payload\030\006" + + "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" - + ".TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/." - + "google.cloud.datalabeling.v1beta1.VideoP" - + "ayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005 " - + "\003(\0132-.google.cloud.datalabeling.v1beta1." - + "AnnotationB\t\n\007payload*W\n\010DataType\022\031\n\025DAT" - + "A_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\014GENERAL_DATA\020\006Bx\n%com.go" - + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" - + "e.golang.org/genproto/googleapis/cloud/d" - + "atalabeling/v1beta1;datalabelingb\006proto3" + + ".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\006Bx\n%com.google.cloud.datalabe" + + "ling.v1beta1P\001ZMgoogle.golang.org/genpro" + + "to/googleapis/cloud/datalabeling/v1beta1" + + ";datalabelingb\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(), @@ -365,8 +381,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); diff --git a/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 index da9d06fd..b94511f9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,7 +122,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -146,7 +148,9 @@ public java.lang.String getName() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -499,7 +503,9 @@ public Builder mergeFrom( * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -523,7 +529,9 @@ public java.lang.String getName() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -547,7 +555,9 @@ public com.google.protobuf.ByteString getNameBytes() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -570,7 +580,9 @@ public Builder setName(java.lang.String value) { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -589,7 +601,9 @@ public Builder clearName() { * {annotated_dataset_id} * * - * string name = 1; + * + * 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. 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 index b0a2bf6d..c230b886 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ public interface DeleteAnnotatedDatasetRequestOrBuilder * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -46,7 +48,9 @@ public interface DeleteAnnotatedDatasetRequestOrBuilder * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 30b1f2a0..ee321446 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,7 +122,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -145,7 +147,9 @@ public java.lang.String getName() { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -497,7 +501,9 @@ public Builder mergeFrom( * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -520,7 +526,9 @@ public java.lang.String getName() { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -543,7 +551,9 @@ public com.google.protobuf.ByteString getNameBytes() { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -565,7 +575,9 @@ public Builder setName(java.lang.String value) { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -583,7 +595,9 @@ public Builder clearName() { * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * 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. 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 index 4b6c019c..7e1ebdc6 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface DeleteAnnotationSpecSetRequestOrBuilder * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface DeleteAnnotationSpecSetRequestOrBuilder * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 1c79bf07..de4a1212 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -488,7 +492,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -511,7 +517,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -534,7 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -556,7 +566,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -574,7 +586,9 @@ public Builder clearName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * 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. 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 index 601e62fc..71c7b616 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface DeleteDatasetRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface DeleteDatasetRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 40280587..a8a6cac1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,10 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -141,10 +143,12 @@ public java.lang.String getName() { * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -489,10 +493,12 @@ public Builder mergeFrom( * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -512,10 +518,12 @@ public java.lang.String getName() { * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -535,10 +543,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -557,10 +567,12 @@ public Builder setName(java.lang.String value) { * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -575,10 +587,12 @@ public Builder clearName() { * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * 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. 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 index 1c92ed63..3a876238 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,12 @@ public interface DeleteEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -41,10 +43,12 @@ public interface DeleteEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index dcf512b3..b81022f6 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -491,7 +495,9 @@ public Builder mergeFrom( * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -514,7 +520,9 @@ public java.lang.String getName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -537,7 +545,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -559,7 +569,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -577,7 +589,9 @@ public Builder clearName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * 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. 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 index b860bf59..12de08fc 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface DeleteInstructionRequestOrBuilder * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface DeleteInstructionRequestOrBuilder * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index c7c8163d..739ed39e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,8 @@ * * *
- * Describes an evaluation between 2 annotated datasets. Created by an
- * evaluation plan.
+ * 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.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation} @@ -195,9 +195,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name of an evaluation.
-   * Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * Output only. Resource name of an evaluation. The name has the following
+   * format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
    * 
* * string name = 1; @@ -219,9 +219,9 @@ public java.lang.String getName() { * * *
-   * Resource name of an evaluation.
-   * Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * Output only. Resource name of an evaluation. The name has the following
+   * format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
    * 
* * string name = 1; @@ -246,7 +246,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -260,7 +261,8 @@ public boolean hasConfig() { * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -276,7 +278,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -291,8 +294,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -306,8 +309,8 @@ public boolean hasEvaluationJobRunTime() { * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -323,8 +326,8 @@ public com.google.protobuf.Timestamp getEvaluationJobRunTime() { * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -339,7 +342,7 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder() * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -353,7 +356,7 @@ public boolean hasCreateTime() { * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -367,7 +370,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -382,7 +385,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -396,7 +399,7 @@ public boolean hasEvaluationMetrics() { * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -412,7 +415,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -428,8 +431,10 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr * * *
-   * Type of the annotation to compute metrics for in the groundtruth and
-   * annotation labeled dataset. Required for creation.
+   * Output only. Type of task that the model version being evaluated performs,
+   * as defined in the
+   * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+   * field of the evaluation job that created this evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -443,8 +448,10 @@ public int getAnnotationTypeValue() { * * *
-   * Type of the annotation to compute metrics for in the groundtruth and
-   * annotation labeled dataset. Required for creation.
+   * Output only. Type of task that the model version being evaluated performs,
+   * as defined in the
+   * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+   * field of the evaluation job that created this evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -466,8 +473,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() * * *
-   * Output only. Count of items in groundtruth dataset included in this
-   * evaluation. Will be unset if annotation type is not applicable.
+   * 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
+   * AnnotationTypes.
    * 
* * int64 evaluated_item_count = 7; @@ -720,8 +728,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Describes an evaluation between 2 annotated datasets. Created by an
-   * evaluation plan.
+   * 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.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation} @@ -948,9 +956,9 @@ public Builder mergeFrom( * * *
-     * Resource name of an evaluation.
-     * Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * Output only. Resource name of an evaluation. The name has the following
+     * format:
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
      * 
* * string name = 1; @@ -972,9 +980,9 @@ public java.lang.String getName() { * * *
-     * Resource name of an evaluation.
-     * Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * Output only. Resource name of an evaluation. The name has the following
+     * format:
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
      * 
* * string name = 1; @@ -996,9 +1004,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name of an evaluation.
-     * Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * Output only. Resource name of an evaluation. The name has the following
+     * format:
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
      * 
* * string name = 1; @@ -1019,9 +1027,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name of an evaluation.
-     * Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * Output only. Resource name of an evaluation. The name has the following
+     * format:
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
      * 
* * string name = 1; @@ -1038,9 +1046,9 @@ public Builder clearName() { * * *
-     * Resource name of an evaluation.
-     * Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * Output only. Resource name of an evaluation. The name has the following
+     * format:
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
      * 
* * string name = 1; @@ -1069,7 +1077,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1083,7 +1092,8 @@ public boolean hasConfig() { * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1103,7 +1113,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1125,7 +1136,8 @@ public Builder setConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1145,7 +1157,8 @@ public Builder setConfig( * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1171,7 +1184,8 @@ public Builder mergeConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfi * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1191,7 +1205,8 @@ public Builder clearConfig() { * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1205,7 +1220,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getConfigB * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1223,7 +1239,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig * * *
-     * Options used in evaluation plan for creating the evaluation.
+     * Output only. Options used in the evaluation job that created this
+     * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -1255,8 +1272,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1270,8 +1287,8 @@ public boolean hasEvaluationJobRunTime() { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1291,8 +1308,8 @@ public com.google.protobuf.Timestamp getEvaluationJobRunTime() { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1314,8 +1331,8 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1334,8 +1351,8 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder bui * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1361,8 +1378,8 @@ public Builder mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1382,8 +1399,8 @@ public Builder clearEvaluationJobRunTime() { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1397,8 +1414,8 @@ public com.google.protobuf.Timestamp.Builder getEvaluationJobRunTimeBuilder() { * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1416,8 +1433,8 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder() * * *
-     * Output only. Timestamp when the evaluation plan triggered this evaluation
-     * flow.
+     * Output only. Timestamp for when the evaluation job that created this
+     * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -1449,7 +1466,7 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder() * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1463,7 +1480,7 @@ public boolean hasCreateTime() { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1483,7 +1500,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1505,7 +1522,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1524,7 +1541,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1548,7 +1565,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1568,7 +1585,7 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1582,7 +1599,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1600,7 +1617,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. Timestamp when this model evaluation was created.
+     * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; @@ -1632,7 +1649,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1646,7 +1663,7 @@ public boolean hasEvaluationMetrics() { * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1666,7 +1683,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1689,7 +1706,7 @@ public Builder setEvaluationMetrics( * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1709,7 +1726,7 @@ public Builder setEvaluationMetrics( * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1736,7 +1753,7 @@ public Builder mergeEvaluationMetrics( * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1756,7 +1773,7 @@ public Builder clearEvaluationMetrics() { * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1771,7 +1788,7 @@ public Builder clearEvaluationMetrics() { * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1790,7 +1807,7 @@ public Builder clearEvaluationMetrics() { * * *
-     * Output only. Metrics of the evaluation.
+     * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -1817,8 +1834,10 @@ public Builder clearEvaluationMetrics() { * * *
-     * Type of the annotation to compute metrics for in the groundtruth and
-     * annotation labeled dataset. Required for creation.
+     * Output only. Type of task that the model version being evaluated performs,
+     * as defined in the
+     * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+     * field of the evaluation job that created this evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -1832,8 +1851,10 @@ public int getAnnotationTypeValue() { * * *
-     * Type of the annotation to compute metrics for in the groundtruth and
-     * annotation labeled dataset. Required for creation.
+     * Output only. Type of task that the model version being evaluated performs,
+     * as defined in the
+     * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+     * field of the evaluation job that created this evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -1850,8 +1871,10 @@ public Builder setAnnotationTypeValue(int value) { * * *
-     * Type of the annotation to compute metrics for in the groundtruth and
-     * annotation labeled dataset. Required for creation.
+     * Output only. Type of task that the model version being evaluated performs,
+     * as defined in the
+     * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+     * field of the evaluation job that created this evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -1870,8 +1893,10 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() * * *
-     * Type of the annotation to compute metrics for in the groundtruth and
-     * annotation labeled dataset. Required for creation.
+     * Output only. Type of task that the model version being evaluated performs,
+     * as defined in the
+     * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+     * field of the evaluation job that created this evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -1892,8 +1917,10 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio * * *
-     * Type of the annotation to compute metrics for in the groundtruth and
-     * annotation labeled dataset. Required for creation.
+     * Output only. Type of task that the model version being evaluated performs,
+     * as defined in the
+     * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+     * field of the evaluation job that created this evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -1912,8 +1939,9 @@ public Builder clearAnnotationType() { * * *
-     * Output only. Count of items in groundtruth dataset included in this
-     * evaluation. Will be unset if annotation type is not applicable.
+     * 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
+     * AnnotationTypes.
      * 
* * int64 evaluated_item_count = 7; @@ -1927,8 +1955,9 @@ public long getEvaluatedItemCount() { * * *
-     * Output only. Count of items in groundtruth dataset included in this
-     * evaluation. Will be unset if annotation type is not applicable.
+     * 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
+     * AnnotationTypes.
      * 
* * int64 evaluated_item_count = 7; @@ -1946,8 +1975,9 @@ public Builder setEvaluatedItemCount(long value) { * * *
-     * Output only. Count of items in groundtruth dataset included in this
-     * evaluation. Will be unset if annotation type is not applicable.
+     * 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
+     * AnnotationTypes.
      * 
* * int64 evaluated_item_count = 7; diff --git a/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 index da19b6b4..ffcb2b5c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,16 @@ package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig} */ +/** + * + * + *
+ * Configuration details used for calculating evaluation metrics and creating an
+ * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
+ * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig} + */ public final class EvaluationConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig) @@ -163,6 +172,14 @@ public VerticalOptionCase getVerticalOptionCase() { 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; * @@ -173,6 +190,14 @@ 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; * @@ -187,6 +212,14 @@ public boolean hasBoundingBoxEvaluationOptions() { 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; * @@ -377,7 +410,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig} */ + /** + * + * + *
+   * Configuration details used for calculating evaluation metrics and creating an
+   * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
+   * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig) @@ -562,6 +604,14 @@ public Builder clearVerticalOption() { 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; * @@ -572,6 +622,14 @@ 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; * @@ -596,6 +654,14 @@ public 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; * @@ -615,6 +681,14 @@ 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; * @@ -632,6 +706,14 @@ 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; * @@ -663,6 +745,14 @@ 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; * @@ -684,6 +774,14 @@ 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; * @@ -693,6 +791,14 @@ public Builder clearBoundingBoxEvaluationOptions() { 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; * @@ -711,6 +817,14 @@ public Builder clearBoundingBoxEvaluationOptions() { } } /** + * + * + *
+     * 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; * diff --git a/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 index a2cf47df..e6086ad7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,14 @@ public interface EvaluationConfigOrBuilder 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; * @@ -32,6 +40,14 @@ public interface EvaluationConfigOrBuilder */ 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; * @@ -41,6 +57,14 @@ public interface EvaluationConfigOrBuilder 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; * diff --git a/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 index 18f9d649..74551fff 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,10 @@ * * *
- * Defines an evaluation job that is triggered periodically to generate
- * evaluations.
+ * Defines an evaluation job that runs periodically to generate
+ * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
+ * job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point
+ * for using continuous evaluation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob} @@ -218,26 +220,146 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public enum State implements com.google.protobuf.ProtocolMessageEnum { /** STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), - /** SCHEDULED = 1; */ + /** + * + * + *
+     * 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
+     * [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
+     * When the job is in this state, it samples prediction input and output
+     * from your model version into your BigQuery table as predictions occur.
+     * 
+ * + * SCHEDULED = 1; + */ SCHEDULED(1), - /** RUNNING = 2; */ + /** + * + * + *
+     * The job is currently running. When the job runs, Data Labeling Service
+     * does several things:
+     * 1. If you have configured your job to use Data Labeling Service for
+     *    ground truth labeling, the service creates a
+     *    [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
+     *    since the last time the job ran. Human labelers provide ground truth
+     *    labels for your data. Human labeling may take hours, or even days,
+     *    depending on how much data has been sampled. The job remains in the
+     *    `RUNNING` state during this time, and it can even be running multiple
+     *    times in parallel if it gets triggered again (for example 24 hours
+     *    later) before the earlier run has completed. When human labelers have
+     *    finished labeling the data, the next step occurs.
+     *    <br><br>
+     *    If you have configured your job to provide your own ground truth
+     *    labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
+     *    sampled data, but it expects that you have already added ground truth
+     *    labels to the BigQuery table by this time. The next step occurs
+     *    immediately.
+     * 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
+     *    model version's predictions with the ground truth labels.
+     * If the job remains in this state for a long time, it continues to sample
+     * prediction data into your BigQuery table and will run again at the next
+     * interval, even if it causes the job to run multiple times in parallel.
+     * 
+ * + * RUNNING = 2; + */ RUNNING(2), - /** PAUSED = 3; */ + /** + * + * + *
+     * The job is not sampling prediction input and output into your BigQuery
+     * table and it will not run according to its schedule. You can
+     * [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
+     * 
+ * + * PAUSED = 3; + */ PAUSED(3), - /** STOPPED = 4; */ + /** + * + * + *
+     * The job has this state right before it is deleted.
+     * 
+ * + * STOPPED = 4; + */ STOPPED(4), UNRECOGNIZED(-1), ; /** STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; - /** SCHEDULED = 1; */ + /** + * + * + *
+     * 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
+     * [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job.
+     * When the job is in this state, it samples prediction input and output
+     * from your model version into your BigQuery table as predictions occur.
+     * 
+ * + * SCHEDULED = 1; + */ public static final int SCHEDULED_VALUE = 1; - /** RUNNING = 2; */ + /** + * + * + *
+     * The job is currently running. When the job runs, Data Labeling Service
+     * does several things:
+     * 1. If you have configured your job to use Data Labeling Service for
+     *    ground truth labeling, the service creates a
+     *    [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled
+     *    since the last time the job ran. Human labelers provide ground truth
+     *    labels for your data. Human labeling may take hours, or even days,
+     *    depending on how much data has been sampled. The job remains in the
+     *    `RUNNING` state during this time, and it can even be running multiple
+     *    times in parallel if it gets triggered again (for example 24 hours
+     *    later) before the earlier run has completed. When human labelers have
+     *    finished labeling the data, the next step occurs.
+     *    <br><br>
+     *    If you have configured your job to provide your own ground truth
+     *    labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly
+     *    sampled data, but it expects that you have already added ground truth
+     *    labels to the BigQuery table by this time. The next step occurs
+     *    immediately.
+     * 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your
+     *    model version's predictions with the ground truth labels.
+     * If the job remains in this state for a long time, it continues to sample
+     * prediction data into your BigQuery table and will run again at the next
+     * interval, even if it causes the job to run multiple times in parallel.
+     * 
+ * + * RUNNING = 2; + */ public static final int RUNNING_VALUE = 2; - /** PAUSED = 3; */ + /** + * + * + *
+     * The job is not sampling prediction input and output into your BigQuery
+     * table and it will not run according to its schedule. You can
+     * [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job.
+     * 
+ * + * PAUSED = 3; + */ public static final int PAUSED_VALUE = 3; - /** STOPPED = 4; */ + /** + * + * + *
+     * The job has this state right before it is deleted.
+     * 
+ * + * STOPPED = 4; + */ public static final int STOPPED_VALUE = 4; public final int getNumber() { @@ -331,7 +453,9 @@ private State(int value) { * * *
-   * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * Output only. After you create a job, Data Labeling Service assigns a name
+   * to the job with the following format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* * string name = 1; @@ -353,7 +477,9 @@ public java.lang.String getName() { * * *
-   * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * Output only. After you create a job, Data Labeling Service assigns a name
+   * to the job with the following format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* * string name = 1; @@ -378,8 +504,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Description of the job. The description can be up to
-   * 25000 characters long.
+   * Required. Description of the job. The description can be up to 25,000
+   * characters long.
    * 
* * string description = 2; @@ -401,8 +527,8 @@ public java.lang.String getDescription() { * * *
-   * Description of the job. The description can be up to
-   * 25000 characters long.
+   * Required. Description of the job. The description can be up to 25,000
+   * characters long.
    * 
* * string description = 2; @@ -424,6 +550,12 @@ 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. @@ -432,6 +564,12 @@ 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. @@ -451,13 +589,15 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { * * *
-   * Describes the schedule on which the job will be executed. Minimum schedule
-   * unit is 1 day.
-   * The schedule can be either of the following types:
-   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-   * * English-like
-   * [schedule](https:
-   * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * 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
+   * you specify a 50-hour interval, the job runs every 2 days.
+   * You can provide the schedule in
+   * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+   * [English-like
+   * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+   * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+   * interval from this schedule is used, not the specific time of day.
    * 
* * string schedule = 4; @@ -479,13 +619,15 @@ public java.lang.String getSchedule() { * * *
-   * Describes the schedule on which the job will be executed. Minimum schedule
-   * unit is 1 day.
-   * The schedule can be either of the following types:
-   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-   * * English-like
-   * [schedule](https:
-   * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * 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
+   * you specify a 50-hour interval, the job runs every 2 days.
+   * You can provide the schedule in
+   * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+   * [English-like
+   * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+   * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+   * interval from this schedule is used, not the specific time of day.
    * 
* * string schedule = 4; @@ -510,9 +652,12 @@ public com.google.protobuf.ByteString getScheduleBytes() { * * *
-   * The versioned model that is being evaluated here.
-   * Only one job is allowed for each model name.
-   * Format: 'projects/*/models/*/versions/*'
+   * Required. The [AI Platform Prediction model
+   * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+   * input and output is sampled from this model version. When creating an
+   * evaluation job, specify the model version in the following format:
+   * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+   * There can only be one evaluation job per model version.
    * 
* * string model_version = 5; @@ -534,9 +679,12 @@ public java.lang.String getModelVersion() { * * *
-   * The versioned model that is being evaluated here.
-   * Only one job is allowed for each model name.
-   * Format: 'projects/*/models/*/versions/*'
+   * Required. The [AI Platform Prediction model
+   * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+   * input and output is sampled from this model version. When creating an
+   * evaluation job, specify the model version in the following format:
+   * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+   * There can only be one evaluation job per model version.
    * 
* * string model_version = 5; @@ -561,7 +709,7 @@ public com.google.protobuf.ByteString getModelVersionBytes() { * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -575,7 +723,7 @@ public boolean hasEvaluationJobConfig() { * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -591,7 +739,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -607,7 +755,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo * * *
-   * Name of the 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
+   * resource before you create an evaluation job and provide its name in the
+   * following format:
+   * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string annotation_spec_set = 7; @@ -629,7 +781,11 @@ public java.lang.String getAnnotationSpecSet() { * * *
-   * Name of the 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
+   * resource before you create an evaluation job and provide its name in the
+   * following format:
+   * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string annotation_spec_set = 7; @@ -654,8 +810,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * * *
-   * If a human annotation should be requested when some data don't have ground
-   * truth.
+   * Required. Whether you want Data Labeling Service to provide ground truth
+   * labels for prediction input. If you want the service to assign human
+   * labelers to annotate your data, set this to `true`. If you want to provide
+   * your own ground truth labels in the evaluation job's BigQuery table, set
+   * this to `false`.
    * 
* * bool label_missing_ground_truth = 8; @@ -672,8 +831,8 @@ public boolean getLabelMissingGroundTruth() { * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -685,8 +844,8 @@ public java.util.List getAttempts * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -699,8 +858,8 @@ public java.util.List getAttempts * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -712,8 +871,8 @@ public int getAttemptsCount() { * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -725,8 +884,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) { * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -741,7 +900,7 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -755,7 +914,7 @@ public boolean hasCreateTime() { * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -769,7 +928,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -1038,8 +1197,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Defines an evaluation job that is triggered periodically to generate
-   * evaluations.
+   * Defines an evaluation job that runs periodically to generate
+   * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
+   * job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point
+   * for using continuous evaluation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob} @@ -1314,7 +1475,9 @@ public Builder mergeFrom( * * *
-     * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * Output only. After you create a job, Data Labeling Service assigns a name
+     * to the job with the following format:
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* * string name = 1; @@ -1336,7 +1499,9 @@ public java.lang.String getName() { * * *
-     * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * Output only. After you create a job, Data Labeling Service assigns a name
+     * to the job with the following format:
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* * string name = 1; @@ -1358,7 +1523,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * Output only. After you create a job, Data Labeling Service assigns a name
+     * to the job with the following format:
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* * string name = 1; @@ -1379,7 +1546,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * Output only. After you create a job, Data Labeling Service assigns a name
+     * to the job with the following format:
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* * string name = 1; @@ -1396,7 +1565,9 @@ public Builder clearName() { * * *
-     * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * Output only. After you create a job, Data Labeling Service assigns a name
+     * to the job with the following format:
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* * string name = 1; @@ -1420,8 +1591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Description of the job. The description can be up to
-     * 25000 characters long.
+     * Required. Description of the job. The description can be up to 25,000
+     * characters long.
      * 
* * string description = 2; @@ -1443,8 +1614,8 @@ public java.lang.String getDescription() { * * *
-     * Description of the job. The description can be up to
-     * 25000 characters long.
+     * Required. Description of the job. The description can be up to 25,000
+     * characters long.
      * 
* * string description = 2; @@ -1466,8 +1637,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Description of the job. The description can be up to
-     * 25000 characters long.
+     * Required. Description of the job. The description can be up to 25,000
+     * characters long.
      * 
* * string description = 2; @@ -1488,8 +1659,8 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Description of the job. The description can be up to
-     * 25000 characters long.
+     * Required. Description of the job. The description can be up to 25,000
+     * characters long.
      * 
* * string description = 2; @@ -1506,8 +1677,8 @@ public Builder clearDescription() { * * *
-     * Description of the job. The description can be up to
-     * 25000 characters long.
+     * Required. Description of the job. The description can be up to 25,000
+     * characters long.
      * 
* * string description = 2; @@ -1528,6 +1699,12 @@ 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. @@ -1536,6 +1713,12 @@ 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. @@ -1547,6 +1730,12 @@ public Builder setStateValue(int value) { return this; } /** + * + * + *
+     * Output only. Describes the current state of the job.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; * * @return The state. @@ -1560,6 +1749,12 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { : result; } /** + * + * + *
+     * Output only. Describes the current state of the job.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; * * @param value The state to set. @@ -1575,6 +1770,12 @@ public Builder setState(com.google.cloud.datalabeling.v1beta1.EvaluationJob.Stat return this; } /** + * + * + *
+     * Output only. Describes the current state of the job.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; * * @return This builder for chaining. @@ -1591,13 +1792,15 @@ public Builder clearState() { * * *
-     * Describes the schedule on which the job will be executed. Minimum schedule
-     * unit is 1 day.
-     * The schedule can be either of the following types:
-     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-     * * English-like
-     * [schedule](https:
-     * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * 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
+     * you specify a 50-hour interval, the job runs every 2 days.
+     * You can provide the schedule in
+     * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+     * [English-like
+     * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+     * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+     * interval from this schedule is used, not the specific time of day.
      * 
* * string schedule = 4; @@ -1619,13 +1822,15 @@ public java.lang.String getSchedule() { * * *
-     * Describes the schedule on which the job will be executed. Minimum schedule
-     * unit is 1 day.
-     * The schedule can be either of the following types:
-     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-     * * English-like
-     * [schedule](https:
-     * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * 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
+     * you specify a 50-hour interval, the job runs every 2 days.
+     * You can provide the schedule in
+     * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+     * [English-like
+     * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+     * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+     * interval from this schedule is used, not the specific time of day.
      * 
* * string schedule = 4; @@ -1647,13 +1852,15 @@ public com.google.protobuf.ByteString getScheduleBytes() { * * *
-     * Describes the schedule on which the job will be executed. Minimum schedule
-     * unit is 1 day.
-     * The schedule can be either of the following types:
-     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-     * * English-like
-     * [schedule](https:
-     * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * 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
+     * you specify a 50-hour interval, the job runs every 2 days.
+     * You can provide the schedule in
+     * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+     * [English-like
+     * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+     * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+     * interval from this schedule is used, not the specific time of day.
      * 
* * string schedule = 4; @@ -1674,13 +1881,15 @@ public Builder setSchedule(java.lang.String value) { * * *
-     * Describes the schedule on which the job will be executed. Minimum schedule
-     * unit is 1 day.
-     * The schedule can be either of the following types:
-     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-     * * English-like
-     * [schedule](https:
-     * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * 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
+     * you specify a 50-hour interval, the job runs every 2 days.
+     * You can provide the schedule in
+     * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+     * [English-like
+     * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+     * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+     * interval from this schedule is used, not the specific time of day.
      * 
* * string schedule = 4; @@ -1697,13 +1906,15 @@ public Builder clearSchedule() { * * *
-     * Describes the schedule on which the job will be executed. Minimum schedule
-     * unit is 1 day.
-     * The schedule can be either of the following types:
-     * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-     * * English-like
-     * [schedule](https:
-     * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+     * 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
+     * you specify a 50-hour interval, the job runs every 2 days.
+     * You can provide the schedule in
+     * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+     * [English-like
+     * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+     * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+     * interval from this schedule is used, not the specific time of day.
      * 
* * string schedule = 4; @@ -1727,9 +1938,12 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { * * *
-     * The versioned model that is being evaluated here.
-     * Only one job is allowed for each model name.
-     * Format: 'projects/*/models/*/versions/*'
+     * Required. The [AI Platform Prediction model
+     * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+     * input and output is sampled from this model version. When creating an
+     * evaluation job, specify the model version in the following format:
+     * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+     * There can only be one evaluation job per model version.
      * 
* * string model_version = 5; @@ -1751,9 +1965,12 @@ public java.lang.String getModelVersion() { * * *
-     * The versioned model that is being evaluated here.
-     * Only one job is allowed for each model name.
-     * Format: 'projects/*/models/*/versions/*'
+     * Required. The [AI Platform Prediction model
+     * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+     * input and output is sampled from this model version. When creating an
+     * evaluation job, specify the model version in the following format:
+     * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+     * There can only be one evaluation job per model version.
      * 
* * string model_version = 5; @@ -1775,9 +1992,12 @@ public com.google.protobuf.ByteString getModelVersionBytes() { * * *
-     * The versioned model that is being evaluated here.
-     * Only one job is allowed for each model name.
-     * Format: 'projects/*/models/*/versions/*'
+     * Required. The [AI Platform Prediction model
+     * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+     * input and output is sampled from this model version. When creating an
+     * evaluation job, specify the model version in the following format:
+     * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+     * There can only be one evaluation job per model version.
      * 
* * string model_version = 5; @@ -1798,9 +2018,12 @@ public Builder setModelVersion(java.lang.String value) { * * *
-     * The versioned model that is being evaluated here.
-     * Only one job is allowed for each model name.
-     * Format: 'projects/*/models/*/versions/*'
+     * Required. The [AI Platform Prediction model
+     * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+     * input and output is sampled from this model version. When creating an
+     * evaluation job, specify the model version in the following format:
+     * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+     * There can only be one evaluation job per model version.
      * 
* * string model_version = 5; @@ -1817,9 +2040,12 @@ public Builder clearModelVersion() { * * *
-     * The versioned model that is being evaluated here.
-     * Only one job is allowed for each model name.
-     * Format: 'projects/*/models/*/versions/*'
+     * Required. The [AI Platform Prediction model
+     * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+     * input and output is sampled from this model version. When creating an
+     * evaluation job, specify the model version in the following format:
+     * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+     * There can only be one evaluation job per model version.
      * 
* * string model_version = 5; @@ -1848,7 +2074,7 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1863,7 +2089,7 @@ public boolean hasEvaluationJobConfig() { * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1884,7 +2110,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1908,7 +2134,7 @@ public Builder setEvaluationJobConfig( * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1929,7 +2155,7 @@ public Builder setEvaluationJobConfig( * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1958,7 +2184,7 @@ public Builder mergeEvaluationJobConfig( * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1979,7 +2205,7 @@ public Builder clearEvaluationJobConfig() { * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -1995,7 +2221,7 @@ public Builder clearEvaluationJobConfig() { * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -2015,7 +2241,7 @@ public Builder clearEvaluationJobConfig() { * * *
-     * Detailed config for running this eval job.
+     * Required. Configuration details for the evaluation job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -2043,7 +2269,11 @@ public Builder clearEvaluationJobConfig() { * * *
-     * Name of the 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
+     * resource before you create an evaluation job and provide its name in the
+     * following format:
+     * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string annotation_spec_set = 7; @@ -2065,7 +2295,11 @@ public java.lang.String getAnnotationSpecSet() { * * *
-     * Name of the 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
+     * resource before you create an evaluation job and provide its name in the
+     * following format:
+     * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string annotation_spec_set = 7; @@ -2087,7 +2321,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * * *
-     * Name of the 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
+     * resource before you create an evaluation job and provide its name in the
+     * following format:
+     * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string annotation_spec_set = 7; @@ -2108,7 +2346,11 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * * *
-     * Name of the 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
+     * resource before you create an evaluation job and provide its name in the
+     * following format:
+     * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string annotation_spec_set = 7; @@ -2125,7 +2367,11 @@ public Builder clearAnnotationSpecSet() { * * *
-     * Name of the 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
+     * resource before you create an evaluation job and provide its name in the
+     * following format:
+     * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string annotation_spec_set = 7; @@ -2149,8 +2395,11 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * * *
-     * If a human annotation should be requested when some data don't have ground
-     * truth.
+     * Required. Whether you want Data Labeling Service to provide ground truth
+     * labels for prediction input. If you want the service to assign human
+     * labelers to annotate your data, set this to `true`. If you want to provide
+     * your own ground truth labels in the evaluation job's BigQuery table, set
+     * this to `false`.
      * 
* * bool label_missing_ground_truth = 8; @@ -2164,8 +2413,11 @@ public boolean getLabelMissingGroundTruth() { * * *
-     * If a human annotation should be requested when some data don't have ground
-     * truth.
+     * Required. Whether you want Data Labeling Service to provide ground truth
+     * labels for prediction input. If you want the service to assign human
+     * labelers to annotate your data, set this to `true`. If you want to provide
+     * your own ground truth labels in the evaluation job's BigQuery table, set
+     * this to `false`.
      * 
* * bool label_missing_ground_truth = 8; @@ -2183,8 +2435,11 @@ public Builder setLabelMissingGroundTruth(boolean value) { * * *
-     * If a human annotation should be requested when some data don't have ground
-     * truth.
+     * Required. Whether you want Data Labeling Service to provide ground truth
+     * labels for prediction input. If you want the service to assign human
+     * labelers to annotate your data, set this to `true`. If you want to provide
+     * your own ground truth labels in the evaluation job's BigQuery table, set
+     * this to `false`.
      * 
* * bool label_missing_ground_truth = 8; @@ -2219,8 +2474,8 @@ private void ensureAttemptsIsMutable() { * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2236,8 +2491,8 @@ public java.util.List getAttempts * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2253,8 +2508,8 @@ public int getAttemptsCount() { * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2270,8 +2525,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) { * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2293,8 +2548,8 @@ public Builder setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Atte * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2314,8 +2569,8 @@ public Builder setAttempts( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2337,8 +2592,8 @@ public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value) * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2360,8 +2615,8 @@ public Builder addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Atte * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2381,8 +2636,8 @@ public Builder addAttempts( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2402,8 +2657,8 @@ public Builder addAttempts( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2423,8 +2678,8 @@ public Builder addAllAttempts( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2443,8 +2698,8 @@ public Builder clearAttempts() { * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2463,8 +2718,8 @@ public Builder removeAttempts(int index) { * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2476,8 +2731,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2493,8 +2748,8 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2511,8 +2766,8 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2525,8 +2780,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2539,8 +2794,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder( * * *
-     * Output only. Any attempts with errors happening in evaluation job runs each
-     * time will be recorded here incrementally.
+     * Output only. Every time the evaluation job runs and an error occurs, the
+     * failed attempt is appended to this array.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -2577,7 +2832,7 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder( * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2591,7 +2846,7 @@ public boolean hasCreateTime() { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2611,7 +2866,7 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2633,7 +2888,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2652,7 +2907,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2676,7 +2931,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2696,7 +2951,7 @@ public Builder clearCreateTime() { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2710,7 +2965,7 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; @@ -2728,7 +2983,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Timestamp when this evaluation job was created.
+     * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; diff --git a/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 index 0edff772..640c0117 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,16 @@ package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig} */ +/** + * + * + *
+ * Provides details for how an evaluation job sends email alerts based on the
+ * results of a run.
+ * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig} + */ public final class EvaluationJobAlertConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) @@ -114,7 +123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Email of the user who will be receiving the alert.
+   * Required. An email address to send alerts to.
    * 
* * string email = 1; @@ -136,7 +145,7 @@ public java.lang.String getEmail() { * * *
-   * Required. Email of the user who will be receiving the alert.
+   * Required. An email address to send alerts to.
    * 
* * string email = 1; @@ -161,8 +170,11 @@ public com.google.protobuf.ByteString getEmailBytes() { * * *
-   * If a single evaluation run's aggregate mean average precision is
-   * lower than this threshold, the alert will be triggered.
+   * Required. A number between 0 and 1 that describes a minimum mean average
+   * precision threshold. When the evaluation job runs, if it calculates that
+   * your model version's predictions from the recent interval have
+   * [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+   * threshold, then it sends an alert to your specified email.
    * 
* * double min_acceptable_mean_average_precision = 2; @@ -349,7 +361,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig} */ + /** + * + * + *
+   * Provides details for how an evaluation job sends email alerts based on the
+   * results of a run.
+   * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) @@ -514,7 +535,7 @@ public Builder mergeFrom( * * *
-     * Required. Email of the user who will be receiving the alert.
+     * Required. An email address to send alerts to.
      * 
* * string email = 1; @@ -536,7 +557,7 @@ public java.lang.String getEmail() { * * *
-     * Required. Email of the user who will be receiving the alert.
+     * Required. An email address to send alerts to.
      * 
* * string email = 1; @@ -558,7 +579,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * * *
-     * Required. Email of the user who will be receiving the alert.
+     * Required. An email address to send alerts to.
      * 
* * string email = 1; @@ -579,7 +600,7 @@ public Builder setEmail(java.lang.String value) { * * *
-     * Required. Email of the user who will be receiving the alert.
+     * Required. An email address to send alerts to.
      * 
* * string email = 1; @@ -596,7 +617,7 @@ public Builder clearEmail() { * * *
-     * Required. Email of the user who will be receiving the alert.
+     * Required. An email address to send alerts to.
      * 
* * string email = 1; @@ -620,8 +641,11 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { * * *
-     * If a single evaluation run's aggregate mean average precision is
-     * lower than this threshold, the alert will be triggered.
+     * Required. A number between 0 and 1 that describes a minimum mean average
+     * precision threshold. When the evaluation job runs, if it calculates that
+     * your model version's predictions from the recent interval have
+     * [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+     * threshold, then it sends an alert to your specified email.
      * 
* * double min_acceptable_mean_average_precision = 2; @@ -635,8 +659,11 @@ public double getMinAcceptableMeanAveragePrecision() { * * *
-     * If a single evaluation run's aggregate mean average precision is
-     * lower than this threshold, the alert will be triggered.
+     * Required. A number between 0 and 1 that describes a minimum mean average
+     * precision threshold. When the evaluation job runs, if it calculates that
+     * your model version's predictions from the recent interval have
+     * [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+     * threshold, then it sends an alert to your specified email.
      * 
* * double min_acceptable_mean_average_precision = 2; @@ -654,8 +681,11 @@ public Builder setMinAcceptableMeanAveragePrecision(double value) { * * *
-     * If a single evaluation run's aggregate mean average precision is
-     * lower than this threshold, the alert will be triggered.
+     * Required. A number between 0 and 1 that describes a minimum mean average
+     * precision threshold. When the evaluation job runs, if it calculates that
+     * your model version's predictions from the recent interval have
+     * [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+     * threshold, then it sends an alert to your specified email.
      * 
* * double min_acceptable_mean_average_precision = 2; diff --git a/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 index 2ef28ebe..41f5499b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ public interface EvaluationJobAlertConfigOrBuilder * * *
-   * Required. Email of the user who will be receiving the alert.
+   * Required. An email address to send alerts to.
    * 
* * string email = 1; @@ -39,7 +39,7 @@ public interface EvaluationJobAlertConfigOrBuilder * * *
-   * Required. Email of the user who will be receiving the alert.
+   * Required. An email address to send alerts to.
    * 
* * string email = 1; @@ -52,8 +52,11 @@ public interface EvaluationJobAlertConfigOrBuilder * * *
-   * If a single evaluation run's aggregate mean average precision is
-   * lower than this threshold, the alert will be triggered.
+   * Required. A number between 0 and 1 that describes a minimum mean average
+   * precision threshold. When the evaluation job runs, if it calculates that
+   * your model version's predictions from the recent interval have
+   * [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this
+   * threshold, then it sends an alert to your specified email.
    * 
* * double min_acceptable_mean_average_precision = 2; diff --git a/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 index 45ba8b6b..d0f4bedd 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,16 @@ package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig} */ +/** + * + * + *
+ * Configures specific details of how a continuous evaluation job works. Provide
+ * this configuration when you create an EvaluationJob.
+ * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig} + */ public final class EvaluationJobConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) @@ -157,51 +166,6 @@ private EvaluationJobConfig( humanAnnotationRequestConfigCase_ = 5; break; } - case 50: - { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = - null; - if (humanAnnotationRequestConfigCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_) - .toBuilder(); - } - humanAnnotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_); - humanAnnotationRequestConfig_ = subBuilder.buildPartial(); - } - humanAnnotationRequestConfigCase_ = 6; - break; - } - case 58: - { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; - if (humanAnnotationRequestConfigCase_ == 7) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_) - .toBuilder(); - } - humanAnnotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_); - humanAnnotationRequestConfig_ = subBuilder.buildPartial(); - } - humanAnnotationRequestConfigCase_ = 7; - break; - } case 66: { com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = @@ -253,28 +217,6 @@ private EvaluationJobConfig( exampleSamplePercentage_ = input.readDouble(); break; } - case 98: - { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; - if (humanAnnotationRequestConfigCase_ == 12) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_) - .toBuilder(); - } - humanAnnotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_); - humanAnnotationRequestConfig_ = subBuilder.buildPartial(); - } - humanAnnotationRequestConfigCase_ = 12; - break; - } case 106: { com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder subBuilder = @@ -347,10 +289,7 @@ public enum HumanAnnotationRequestConfigCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_CLASSIFICATION_CONFIG(4), BOUNDING_POLY_CONFIG(5), - VIDEO_CLASSIFICATION_CONFIG(6), - OBJECT_DETECTION_CONFIG(7), TEXT_CLASSIFICATION_CONFIG(8), - OBJECT_TRACKING_CONFIG(12), HUMANANNOTATIONREQUESTCONFIG_NOT_SET(0); private final int value; @@ -373,14 +312,8 @@ public static HumanAnnotationRequestConfigCase forNumber(int value) { return IMAGE_CLASSIFICATION_CONFIG; case 5: return BOUNDING_POLY_CONFIG; - case 6: - return VIDEO_CLASSIFICATION_CONFIG; - case 7: - return OBJECT_DETECTION_CONFIG; case 8: return TEXT_CLASSIFICATION_CONFIG; - case 12: - return OBJECT_TRACKING_CONFIG; case 0: return HUMANANNOTATIONREQUESTCONFIG_NOT_SET; default: @@ -399,6 +332,17 @@ public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() { public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4; /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -409,6 +353,17 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -424,6 +379,17 @@ public boolean hasImageClassificationConfig() { return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -439,6 +405,15 @@ public boolean hasImageClassificationConfig() { public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 5; /** + * + * + *
+   * Specify this field if your model version performs image object detection
+   * (bounding box detection).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; * * @return Whether the boundingPolyConfig field is set. @@ -447,6 +422,15 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** + * + * + *
+   * Specify this field if your model version performs image object detection
+   * (bounding box detection).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; * * @return The boundingPolyConfig. @@ -459,6 +443,15 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** + * + * + *
+   * Specify this field if your model version performs image object detection
+   * (bounding box detection).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder @@ -470,84 +463,18 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } - public static final int VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER = 6; - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * - * @return Whether the videoClassificationConfig field is set. - */ - public boolean hasVideoClassificationConfig() { - return humanAnnotationRequestConfigCase_ == 6; - } + public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 8; /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * * - * @return The videoClassificationConfig. - */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { - if (humanAnnotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { - if (humanAnnotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); - } - - public static final int OBJECT_DETECTION_CONFIG_FIELD_NUMBER = 7; - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * * - * @return Whether the objectDetectionConfig field is set. - */ - public boolean hasObjectDetectionConfig() { - return humanAnnotationRequestConfigCase_ == 7; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
* - * @return The objectDetectionConfig. - */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { - if (humanAnnotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { - if (humanAnnotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); - } - - public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 8; - /** * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -558,6 +485,16 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** + * + * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -573,6 +510,16 @@ public boolean hasTextClassificationConfig() { return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** + * + * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -586,50 +533,21 @@ public boolean hasTextClassificationConfig() { return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 12; - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return Whether the objectTrackingConfig field is set. - */ - public boolean hasObjectTrackingConfig() { - return humanAnnotationRequestConfigCase_ == 12; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return The objectTrackingConfig. - */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { - if (humanAnnotationRequestConfigCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { - if (humanAnnotationRequestConfigCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); - } - public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; /** * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -643,8 +561,15 @@ public boolean hasInputConfig() { * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -660,8 +585,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -676,7 +608,11 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -690,7 +626,11 @@ public boolean hasEvaluationConfig() { * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -706,7 +646,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -719,6 +663,18 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi 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
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -728,6 +684,18 @@ 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
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -739,6 +707,18 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot : humanAnnotationConfig_; } /** + * + * + *
+   * Optional. Details for human annotation of your data. If you set
+   * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -778,13 +758,22 @@ public int getBigqueryImportKeysCount() { * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -804,13 +793,22 @@ public java.util.Map getBigqueryImportKeys() * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -822,13 +820,22 @@ public java.util.Map getBigqueryImportKeysMa * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -846,13 +853,22 @@ public java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -875,7 +891,11 @@ public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) { * * *
-   * Max number of examples to collect in each period.
+   * Required. The maximum number of predictions to sample and save to BigQuery
+   * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+   * overrides `example_sample_percentage`: even if the service has not sampled
+   * enough predictions to fulfill `example_sample_perecentage` during an
+   * interval, it stops sampling predictions when it meets this limit.
    * 
* * int32 example_count = 10; @@ -892,8 +912,9 @@ public int getExampleCount() { * * *
-   * Percentage of examples to collect in each period. 0.1 means 10% of total
-   * examples will be collected, and 0.0 means no collection.
+   * 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
+   * 10% of predictions served by your model version get saved to BigQuery.
    * 
* * double example_sample_percentage = 11; @@ -910,8 +931,9 @@ public double getExampleSamplePercentage() { * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * @@ -927,8 +949,9 @@ public boolean hasEvaluationJobAlertConfig() { * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * @@ -947,8 +970,9 @@ public boolean hasEvaluationJobAlertConfig() { * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * @@ -994,18 +1018,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); } - if (humanAnnotationRequestConfigCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_); - } - if (humanAnnotationRequestConfigCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_); - } if (humanAnnotationRequestConfigCase_ == 8) { output.writeMessage( 8, @@ -1023,12 +1035,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exampleSamplePercentage_ != 0D) { output.writeDouble(11, exampleSamplePercentage_); } - if (humanAnnotationRequestConfigCase_ == 12) { - output.writeMessage( - 12, - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_); - } if (evaluationJobAlertConfig_ != null) { output.writeMessage(13, getEvaluationJobAlertConfig()); } @@ -1065,20 +1071,6 @@ public int getSerializedSize() { (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); } - if (humanAnnotationRequestConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_); - } - if (humanAnnotationRequestConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_); - } if (humanAnnotationRequestConfigCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1102,13 +1094,6 @@ public int getSerializedSize() { if (exampleSamplePercentage_ != 0D) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, exampleSamplePercentage_); } - if (humanAnnotationRequestConfigCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_); - } if (evaluationJobAlertConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1161,20 +1146,10 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; break; - case 6: - if (!getVideoClassificationConfig().equals(other.getVideoClassificationConfig())) - return false; - break; - case 7: - if (!getObjectDetectionConfig().equals(other.getObjectDetectionConfig())) return false; - break; case 8: if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) return false; break; - case 12: - if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; - break; case 0: default: } @@ -1225,22 +1200,10 @@ public int hashCode() { hash = (37 * hash) + BOUNDING_POLY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBoundingPolyConfig().hashCode(); break; - case 6: - hash = (37 * hash) + VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getVideoClassificationConfig().hashCode(); - break; - case 7: - hash = (37 * hash) + OBJECT_DETECTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getObjectDetectionConfig().hashCode(); - break; case 8: hash = (37 * hash) + TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getTextClassificationConfig().hashCode(); break; - case 12: - hash = (37 * hash) + OBJECT_TRACKING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getObjectTrackingConfig().hashCode(); - break; case 0: default: } @@ -1345,7 +1308,16 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig} */ + /** + * + * + *
+   * Configures specific details of how a continuous evaluation job works. Provide
+   * this configuration when you create an EvaluationJob.
+   * 
+ * + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) @@ -1475,20 +1447,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial() result.humanAnnotationRequestConfig_ = boundingPolyConfigBuilder_.build(); } } - if (humanAnnotationRequestConfigCase_ == 6) { - if (videoClassificationConfigBuilder_ == null) { - result.humanAnnotationRequestConfig_ = humanAnnotationRequestConfig_; - } else { - result.humanAnnotationRequestConfig_ = videoClassificationConfigBuilder_.build(); - } - } - if (humanAnnotationRequestConfigCase_ == 7) { - if (objectDetectionConfigBuilder_ == null) { - result.humanAnnotationRequestConfig_ = humanAnnotationRequestConfig_; - } else { - result.humanAnnotationRequestConfig_ = objectDetectionConfigBuilder_.build(); - } - } if (humanAnnotationRequestConfigCase_ == 8) { if (textClassificationConfigBuilder_ == null) { result.humanAnnotationRequestConfig_ = humanAnnotationRequestConfig_; @@ -1496,13 +1454,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial() result.humanAnnotationRequestConfig_ = textClassificationConfigBuilder_.build(); } } - if (humanAnnotationRequestConfigCase_ == 12) { - if (objectTrackingConfigBuilder_ == null) { - result.humanAnnotationRequestConfig_ = humanAnnotationRequestConfig_; - } else { - result.humanAnnotationRequestConfig_ = objectTrackingConfigBuilder_.build(); - } - } if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; } else { @@ -1608,26 +1559,11 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConf mergeBoundingPolyConfig(other.getBoundingPolyConfig()); break; } - case VIDEO_CLASSIFICATION_CONFIG: - { - mergeVideoClassificationConfig(other.getVideoClassificationConfig()); - break; - } - case OBJECT_DETECTION_CONFIG: - { - mergeObjectDetectionConfig(other.getObjectDetectionConfig()); - break; - } case TEXT_CLASSIFICATION_CONFIG: { mergeTextClassificationConfig(other.getTextClassificationConfig()); break; } - case OBJECT_TRACKING_CONFIG: - { - mergeObjectTrackingConfig(other.getObjectTrackingConfig()); - break; - } case HUMANANNOTATIONREQUESTCONFIG_NOT_SET: { break; @@ -1685,6 +1621,17 @@ public Builder clearHumanAnnotationRequestConfig() { com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_; /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1695,6 +1642,17 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1717,6 +1675,17 @@ public boolean hasImageClassificationConfig() { } } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1736,6 +1705,17 @@ public Builder setImageClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1752,6 +1732,17 @@ public Builder setImageClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1783,6 +1774,17 @@ public Builder mergeImageClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1804,15 +1806,37 @@ public Builder clearImageClassificationConfig() { return this; } /** - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - */ + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + */ 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.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1830,6 +1854,17 @@ public Builder clearImageClassificationConfig() { } } /** + * + * + *
+     * Specify this field if your model version performs image classification or
+     * general classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -1867,6 +1902,15 @@ public Builder clearImageClassificationConfig() { com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; * * @return Whether the boundingPolyConfig field is set. @@ -1875,6 +1919,15 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; * * @return The boundingPolyConfig. @@ -1894,6 +1947,15 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public Builder setBoundingPolyConfig( @@ -1911,6 +1973,15 @@ public Builder setBoundingPolyConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public Builder setBoundingPolyConfig( @@ -1925,6 +1996,15 @@ public Builder setBoundingPolyConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public Builder mergeBoundingPolyConfig( @@ -1953,6 +2033,15 @@ public Builder mergeBoundingPolyConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public Builder clearBoundingPolyConfig() { @@ -1972,6 +2061,15 @@ public Builder clearBoundingPolyConfig() { return this; } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder @@ -1979,6 +2077,15 @@ public Builder clearBoundingPolyConfig() { return getBoundingPolyConfigFieldBuilder().getBuilder(); } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder @@ -1994,6 +2101,15 @@ public Builder clearBoundingPolyConfig() { } } /** + * + * + *
+     * Specify this field if your model version performs image object detection
+     * (bounding box detection).
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< @@ -2023,366 +2139,22 @@ public Builder clearBoundingPolyConfig() { return boundingPolyConfigBuilder_; } - 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_; - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * - * @return Whether the videoClassificationConfig field is set. - */ - public boolean hasVideoClassificationConfig() { - return humanAnnotationRequestConfigCase_ == 6; - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * - * @return The videoClassificationConfig. - */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { - if (videoClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); - } else { - if (humanAnnotationRequestConfigCase_ == 6) { - return videoClassificationConfigBuilder_.getMessage(); - } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); - } - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public Builder setVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { - if (videoClassificationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - humanAnnotationRequestConfig_ = value; - onChanged(); - } else { - videoClassificationConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 6; - return this; - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public Builder setVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder builderForValue) { - if (videoClassificationConfigBuilder_ == null) { - humanAnnotationRequestConfig_ = builderForValue.build(); - onChanged(); - } else { - videoClassificationConfigBuilder_.setMessage(builderForValue.build()); - } - humanAnnotationRequestConfigCase_ = 6; - return this; - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public Builder mergeVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { - if (videoClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 6 - && humanAnnotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .getDefaultInstance()) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - humanAnnotationRequestConfig_ = value; - } - onChanged(); - } else { - if (humanAnnotationRequestConfigCase_ == 6) { - videoClassificationConfigBuilder_.mergeFrom(value); - } - videoClassificationConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 6; - return this; - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public Builder clearVideoClassificationConfig() { - if (videoClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 6) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - onChanged(); - } - } else { - if (humanAnnotationRequestConfigCase_ == 6) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - } - videoClassificationConfigBuilder_.clear(); - } - return this; - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder - getVideoClassificationConfigBuilder() { - return getVideoClassificationConfigFieldBuilder().getBuilder(); - } - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { - if ((humanAnnotationRequestConfigCase_ == 6) && (videoClassificationConfigBuilder_ != null)) { - return videoClassificationConfigBuilder_.getMessageOrBuilder(); - } else { - if (humanAnnotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); - } - } - /** - * - * .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> - getVideoClassificationConfigFieldBuilder() { - if (videoClassificationConfigBuilder_ == null) { - if (!(humanAnnotationRequestConfigCase_ == 6)) { - humanAnnotationRequestConfig_ = - 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) - humanAnnotationRequestConfig_, - getParentForChildren(), - isClean()); - humanAnnotationRequestConfig_ = null; - } - humanAnnotationRequestConfigCase_ = 6; - 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_; - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * - * @return Whether the objectDetectionConfig field is set. - */ - public boolean hasObjectDetectionConfig() { - return humanAnnotationRequestConfigCase_ == 7; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * - * @return The objectDetectionConfig. - */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { - if (objectDetectionConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); - } else { - if (humanAnnotationRequestConfigCase_ == 7) { - return objectDetectionConfigBuilder_.getMessage(); - } - return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); - } - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public Builder setObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { - if (objectDetectionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - humanAnnotationRequestConfig_ = value; - onChanged(); - } else { - objectDetectionConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 7; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public Builder setObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder builderForValue) { - if (objectDetectionConfigBuilder_ == null) { - humanAnnotationRequestConfig_ = builderForValue.build(); - onChanged(); - } else { - objectDetectionConfigBuilder_.setMessage(builderForValue.build()); - } - humanAnnotationRequestConfigCase_ = 7; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public Builder mergeObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { - if (objectDetectionConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 7 - && humanAnnotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig - .getDefaultInstance()) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - humanAnnotationRequestConfig_ = value; - } - onChanged(); - } else { - if (humanAnnotationRequestConfigCase_ == 7) { - objectDetectionConfigBuilder_.mergeFrom(value); - } - objectDetectionConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 7; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public Builder clearObjectDetectionConfig() { - if (objectDetectionConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 7) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - onChanged(); - } - } else { - if (humanAnnotationRequestConfigCase_ == 7) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - } - objectDetectionConfigBuilder_.clear(); - } - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder - getObjectDetectionConfigBuilder() { - return getObjectDetectionConfigFieldBuilder().getBuilder(); - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { - if ((humanAnnotationRequestConfigCase_ == 7) && (objectDetectionConfigBuilder_ != null)) { - return objectDetectionConfigBuilder_.getMessageOrBuilder(); - } else { - if (humanAnnotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); - } - } - /** - * .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> - getObjectDetectionConfigFieldBuilder() { - if (objectDetectionConfigBuilder_ == null) { - if (!(humanAnnotationRequestConfigCase_ == 7)) { - humanAnnotationRequestConfig_ = - 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) - humanAnnotationRequestConfig_, - getParentForChildren(), - isClean()); - humanAnnotationRequestConfig_ = null; - } - humanAnnotationRequestConfigCase_ = 7; - onChanged(); - ; - return objectDetectionConfigBuilder_; - } - 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_; /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2393,6 +2165,16 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2415,6 +2197,16 @@ public boolean hasTextClassificationConfig() { } } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2434,6 +2226,16 @@ public Builder setTextClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2450,6 +2252,16 @@ public Builder setTextClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2481,6 +2293,16 @@ public Builder mergeTextClassificationConfig( return this; } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2502,6 +2324,16 @@ public Builder clearTextClassificationConfig() { return this; } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2511,6 +2343,16 @@ public Builder clearTextClassificationConfig() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2528,6 +2370,16 @@ public Builder clearTextClassificationConfig() { } } /** + * + * + *
+     * Specify this field if your model version performs text classification.
+     * `annotationSpecSet` in this configuration must match
+     * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+     * `allowMultiLabel` in this configuration must match
+     * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+     * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -2559,178 +2411,6 @@ public Builder clearTextClassificationConfig() { return textClassificationConfigBuilder_; } - 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_; - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return Whether the objectTrackingConfig field is set. - */ - public boolean hasObjectTrackingConfig() { - return humanAnnotationRequestConfigCase_ == 12; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return The objectTrackingConfig. - */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { - if (objectTrackingConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); - } else { - if (humanAnnotationRequestConfigCase_ == 12) { - return objectTrackingConfigBuilder_.getMessage(); - } - return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); - } - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public Builder setObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { - if (objectTrackingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - humanAnnotationRequestConfig_ = value; - onChanged(); - } else { - objectTrackingConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 12; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public Builder setObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder builderForValue) { - if (objectTrackingConfigBuilder_ == null) { - humanAnnotationRequestConfig_ = builderForValue.build(); - onChanged(); - } else { - objectTrackingConfigBuilder_.setMessage(builderForValue.build()); - } - humanAnnotationRequestConfigCase_ = 12; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public Builder mergeObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { - if (objectTrackingConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 12 - && humanAnnotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig - .getDefaultInstance()) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - humanAnnotationRequestConfig_ = value; - } - onChanged(); - } else { - if (humanAnnotationRequestConfigCase_ == 12) { - objectTrackingConfigBuilder_.mergeFrom(value); - } - objectTrackingConfigBuilder_.setMessage(value); - } - humanAnnotationRequestConfigCase_ = 12; - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public Builder clearObjectTrackingConfig() { - if (objectTrackingConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 12) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - onChanged(); - } - } else { - if (humanAnnotationRequestConfigCase_ == 12) { - humanAnnotationRequestConfigCase_ = 0; - humanAnnotationRequestConfig_ = null; - } - objectTrackingConfigBuilder_.clear(); - } - return this; - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder - getObjectTrackingConfigBuilder() { - return getObjectTrackingConfigFieldBuilder().getBuilder(); - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { - if ((humanAnnotationRequestConfigCase_ == 12) && (objectTrackingConfigBuilder_ != null)) { - return objectTrackingConfigBuilder_.getMessageOrBuilder(); - } else { - if (humanAnnotationRequestConfigCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - humanAnnotationRequestConfig_; - } - return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); - } - } - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> - getObjectTrackingConfigFieldBuilder() { - if (objectTrackingConfigBuilder_ == null) { - if (!(humanAnnotationRequestConfigCase_ == 12)) { - humanAnnotationRequestConfig_ = - 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) - humanAnnotationRequestConfig_, - getParentForChildren(), - isClean()); - humanAnnotationRequestConfig_ = null; - } - humanAnnotationRequestConfigCase_ = 12; - onChanged(); - ; - return objectTrackingConfigBuilder_; - } - private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.InputConfig, @@ -2741,8 +2421,15 @@ public Builder clearObjectTrackingConfig() { * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2756,8 +2443,15 @@ public boolean hasInputConfig() { * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2777,8 +2471,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2800,8 +2501,15 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2821,8 +2529,15 @@ public Builder setInputConfig( * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2848,8 +2563,15 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2869,8 +2591,15 @@ public Builder clearInputConfig() { * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2884,8 +2613,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigB * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2903,8 +2639,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig * * *
-     * Input config for data, gcs_source in the config will be the root path for
-     * data. Data should be organzied chronically under that path.
+     * Rquired. Details for the sampled prediction input. Within this
+     * configuration, there are requirements for several fields:
+     * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+     * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+     *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+     *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+     * * If your machine learning model performs classification, you must specify
+     *   `classificationMetadata.isMultiLabel`.
+     * * You must specify `bigquerySource` (not `gcsSource`).
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -2936,7 +2679,11 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -2950,7 +2697,11 @@ public boolean hasEvaluationConfig() { * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -2970,7 +2721,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -2993,7 +2748,11 @@ public Builder setEvaluationConfig( * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3013,7 +2772,11 @@ public Builder setEvaluationConfig( * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3040,7 +2803,11 @@ public Builder mergeEvaluationConfig( * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3060,7 +2827,11 @@ public Builder clearEvaluationConfig() { * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3075,7 +2846,11 @@ public Builder clearEvaluationConfig() { * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3094,7 +2869,11 @@ public Builder clearEvaluationConfig() { * * *
-     * Config used to create evaluation.
+     * Required. Details for calculating evaluation metrics and creating
+     * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+     * detection, you must specify the `boundingBoxEvaluationOptions` field within
+     * this configuration. Otherwise, provide an empty object for this
+     * configuration.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -3123,6 +2902,18 @@ public Builder clearEvaluationConfig() { 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -3132,6 +2923,18 @@ 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -3147,6 +2950,18 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot } } /** + * + * + *
+     * Optional. Details for human annotation of your data. If you set
+     * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3165,6 +2980,18 @@ 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3180,6 +3007,18 @@ 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3203,6 +3042,18 @@ 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3218,6 +3069,18 @@ 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3228,6 +3091,18 @@ public Builder clearHumanAnnotationConfig() { 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
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3242,6 +3117,18 @@ public Builder clearHumanAnnotationConfig() { } } /** + * + * + *
+     * Optional. Details for human annotation of your data. If you set
+     * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
+     * `true` for this evaluation job, then you must specify this field. If you
+     * plan to provide your own ground truth labels, then omit this field.
+     * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+     * specify this field. Provide the name of the instruction resource in the
+     * `instruction` field within this configuration.
+     * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -3295,13 +3182,22 @@ public int getBigqueryImportKeysCount() { * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3321,13 +3217,22 @@ public java.util.Map getBigqueryImportKeys() * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3339,13 +3244,22 @@ public java.util.Map getBigqueryImportKeysMa * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3363,13 +3277,22 @@ public java.lang.String getBigqueryImportKeysOrDefault( * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3394,13 +3317,22 @@ public Builder clearBigqueryImportKeys() { * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3421,13 +3353,22 @@ public java.util.Map getMutableBigqueryImpor * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3446,13 +3387,22 @@ public Builder putBigqueryImportKeys(java.lang.String key, java.lang.String valu * * *
-     * Mappings between reserved keys for bigquery import and customized tensor
-     * names. Key is the reserved key, value is tensor name in the bigquery table.
-     * Different annotation type has different required key mapping. See user
-     * manual for more details:
-     * https:
-     * //docs.google.com/document/d/1bg1meMIBGY
-     * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+     * Required. Prediction keys that tell Data Labeling Service where to find the
+     * data for evaluation in your BigQuery table. When the service samples
+     * prediction input and output from your model version and saves it to
+     * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+     * keys tell Data Labeling Service how to parse the JSON.
+     * You can provide the following entries in this field:
+     * * `data_json_key`: the data key for prediction input. You must provide
+     *   either this key or `reference_json_key`.
+     * * `reference_json_key`: the data reference key for prediction input. You
+     *   must provide either this key or `data_json_key`.
+     * * `label_json_key`: the label key for prediction output. Required.
+     * * `label_score_json_key`: the score key for prediction output. Required.
+     * * `bounding_box_json_key`: the bounding box key for prediction output.
+     *   Required if your model version perform image object detection.
+     * Learn [how to configure prediction
+     * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
      * 
* * map<string, string> bigquery_import_keys = 9; @@ -3468,7 +3418,11 @@ public Builder putAllBigqueryImportKeys( * * *
-     * Max number of examples to collect in each period.
+     * Required. The maximum number of predictions to sample and save to BigQuery
+     * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+     * overrides `example_sample_percentage`: even if the service has not sampled
+     * enough predictions to fulfill `example_sample_perecentage` during an
+     * interval, it stops sampling predictions when it meets this limit.
      * 
* * int32 example_count = 10; @@ -3482,7 +3436,11 @@ public int getExampleCount() { * * *
-     * Max number of examples to collect in each period.
+     * Required. The maximum number of predictions to sample and save to BigQuery
+     * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+     * overrides `example_sample_percentage`: even if the service has not sampled
+     * enough predictions to fulfill `example_sample_perecentage` during an
+     * interval, it stops sampling predictions when it meets this limit.
      * 
* * int32 example_count = 10; @@ -3500,7 +3458,11 @@ public Builder setExampleCount(int value) { * * *
-     * Max number of examples to collect in each period.
+     * Required. The maximum number of predictions to sample and save to BigQuery
+     * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+     * overrides `example_sample_percentage`: even if the service has not sampled
+     * enough predictions to fulfill `example_sample_perecentage` during an
+     * interval, it stops sampling predictions when it meets this limit.
      * 
* * int32 example_count = 10; @@ -3519,8 +3481,9 @@ public Builder clearExampleCount() { * * *
-     * Percentage of examples to collect in each period. 0.1 means 10% of total
-     * examples will be collected, and 0.0 means no collection.
+     * 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
+     * 10% of predictions served by your model version get saved to BigQuery.
      * 
* * double example_sample_percentage = 11; @@ -3534,8 +3497,9 @@ public double getExampleSamplePercentage() { * * *
-     * Percentage of examples to collect in each period. 0.1 means 10% of total
-     * examples will be collected, and 0.0 means no collection.
+     * 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
+     * 10% of predictions served by your model version get saved to BigQuery.
      * 
* * double example_sample_percentage = 11; @@ -3553,8 +3517,9 @@ public Builder setExampleSamplePercentage(double value) { * * *
-     * Percentage of examples to collect in each period. 0.1 means 10% of total
-     * examples will be collected, and 0.0 means no collection.
+     * 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
+     * 10% of predictions served by your model version get saved to BigQuery.
      * 
* * double example_sample_percentage = 11; @@ -3579,8 +3544,9 @@ public Builder clearExampleSamplePercentage() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3596,8 +3562,9 @@ public boolean hasEvaluationJobAlertConfig() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3620,8 +3587,9 @@ public boolean hasEvaluationJobAlertConfig() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3646,8 +3614,9 @@ public Builder setEvaluationJobAlertConfig( * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3669,8 +3638,9 @@ public Builder setEvaluationJobAlertConfig( * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3700,8 +3670,9 @@ public Builder mergeEvaluationJobAlertConfig( * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3723,8 +3694,9 @@ public Builder clearEvaluationJobAlertConfig() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3741,8 +3713,9 @@ public Builder clearEvaluationJobAlertConfig() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * @@ -3763,8 +3736,9 @@ public Builder clearEvaluationJobAlertConfig() { * * *
-     * Alert config for the evaluation job. The alert will be triggered when its
-     * criteria is met.
+     * 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.
      * 
* * diff --git a/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 index ae4b60e7..f6fd7322 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,17 @@ public interface EvaluationJobConfigOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -32,6 +43,17 @@ public interface EvaluationJobConfigOrBuilder */ boolean hasImageClassificationConfig(); /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -40,6 +62,17 @@ public interface EvaluationJobConfigOrBuilder */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** + * + * + *
+   * Specify this field if your model version performs image classification or
+   * general classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @@ -48,69 +81,61 @@ public interface EvaluationJobConfigOrBuilder getImageClassificationConfigOrBuilder(); /** + * + * + *
+   * Specify this field if your model version performs image object detection
+   * (bounding box detection).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .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).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .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).
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * 
+ * * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder(); /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * * - * @return Whether the videoClassificationConfig field is set. - */ - boolean hasVideoClassificationConfig(); - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * * - * @return The videoClassificationConfig. - */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig(); - /** - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder(); - - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * - * @return Whether the objectDetectionConfig field is set. - */ - boolean hasObjectDetectionConfig(); - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
* - * @return The objectDetectionConfig. - */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig(); - /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder(); - - /** * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -119,6 +144,16 @@ public interface EvaluationJobConfigOrBuilder */ boolean hasTextClassificationConfig(); /** + * + * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -127,6 +162,16 @@ public interface EvaluationJobConfigOrBuilder */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** + * + * + *
+   * Specify this field if your model version performs text classification.
+   * `annotationSpecSet` in this configuration must match
+   * [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].
+   * `allowMultiLabel` in this configuration must match
+   * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
+   * 
+ * * * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @@ -134,33 +179,19 @@ public interface EvaluationJobConfigOrBuilder com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return Whether the objectTrackingConfig field is set. - */ - boolean hasObjectTrackingConfig(); - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - * - * @return The objectTrackingConfig. - */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig(); - /** - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 12; - * - */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder(); - /** * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -172,8 +203,15 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -185,8 +223,15 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Input config for data, gcs_source in the config will be the root path for
-   * data. Data should be organzied chronically under that path.
+   * Rquired. Details for the sampled prediction input. Within this
+   * configuration, there are requirements for several fields:
+   * * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`.
+   * * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`,
+   *   `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`,
+   *   or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection).
+   * * If your machine learning model performs classification, you must specify
+   *   `classificationMetadata.isMultiLabel`.
+   * * You must specify `bigquerySource` (not `gcsSource`).
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; @@ -197,7 +242,11 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -209,7 +258,11 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -221,7 +274,11 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Config used to create evaluation.
+   * Required. Details for calculating evaluation metrics and creating
+   * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
+   * detection, you must specify the `boundingBoxEvaluationOptions` field within
+   * this configuration. Otherwise, provide an empty object for this
+   * configuration.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; @@ -229,6 +286,18 @@ 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
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -236,6 +305,18 @@ public interface EvaluationJobConfigOrBuilder */ boolean hasHumanAnnotationConfig(); /** + * + * + *
+   * Optional. Details for human annotation of your data. If you set
+   * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * * @@ -243,6 +324,18 @@ public interface EvaluationJobConfigOrBuilder */ 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
+   * `true` for this evaluation job, then you must specify this field. If you
+   * plan to provide your own ground truth labels, then omit this field.
+   * Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can
+   * specify this field. Provide the name of the instruction resource in the
+   * `instruction` field within this configuration.
+   * 
+ * * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * */ @@ -253,13 +346,22 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -269,13 +371,22 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -288,13 +399,22 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -304,13 +424,22 @@ public interface EvaluationJobConfigOrBuilder * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -321,13 +450,22 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Mappings between reserved keys for bigquery import and customized tensor
-   * names. Key is the reserved key, value is tensor name in the bigquery table.
-   * Different annotation type has different required key mapping. See user
-   * manual for more details:
-   * https:
-   * //docs.google.com/document/d/1bg1meMIBGY
-   * // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem
+   * Required. Prediction keys that tell Data Labeling Service where to find the
+   * data for evaluation in your BigQuery table. When the service samples
+   * prediction input and output from your model version and saves it to
+   * BigQuery, the data gets stored as JSON strings in the BigQuery table. These
+   * keys tell Data Labeling Service how to parse the JSON.
+   * You can provide the following entries in this field:
+   * * `data_json_key`: the data key for prediction input. You must provide
+   *   either this key or `reference_json_key`.
+   * * `reference_json_key`: the data reference key for prediction input. You
+   *   must provide either this key or `data_json_key`.
+   * * `label_json_key`: the label key for prediction output. Required.
+   * * `label_score_json_key`: the score key for prediction output. Required.
+   * * `bounding_box_json_key`: the bounding box key for prediction output.
+   *   Required if your model version perform image object detection.
+   * Learn [how to configure prediction
+   * keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
    * 
* * map<string, string> bigquery_import_keys = 9; @@ -338,7 +476,11 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Max number of examples to collect in each period.
+   * Required. The maximum number of predictions to sample and save to BigQuery
+   * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
+   * overrides `example_sample_percentage`: even if the service has not sampled
+   * enough predictions to fulfill `example_sample_perecentage` during an
+   * interval, it stops sampling predictions when it meets this limit.
    * 
* * int32 example_count = 10; @@ -351,8 +493,9 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Percentage of examples to collect in each period. 0.1 means 10% of total
-   * examples will be collected, and 0.0 means no collection.
+   * 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
+   * 10% of predictions served by your model version get saved to BigQuery.
    * 
* * double example_sample_percentage = 11; @@ -365,8 +508,9 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * @@ -380,8 +524,9 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * @@ -395,8 +540,9 @@ java.lang.String getBigqueryImportKeysOrDefault( * * *
-   * Alert config for the evaluation job. The alert will be triggered when its
-   * criteria is met.
+   * 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.
    * 
* * diff --git a/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 index 36755d68..1d64488c 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 133c4bf4..9f678e69 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ public interface EvaluationJobOrBuilder * * *
-   * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * Output only. After you create a job, Data Labeling Service assigns a name
+   * to the job with the following format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* * string name = 1; @@ -39,7 +41,9 @@ public interface EvaluationJobOrBuilder * * *
-   * Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * Output only. After you create a job, Data Labeling Service assigns a name
+   * to the job with the following format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* * string name = 1; @@ -52,8 +56,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Description of the job. The description can be up to
-   * 25000 characters long.
+   * Required. Description of the job. The description can be up to 25,000
+   * characters long.
    * 
* * string description = 2; @@ -65,8 +69,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Description of the job. The description can be up to
-   * 25000 characters long.
+   * Required. Description of the job. The description can be up to 25,000
+   * characters long.
    * 
* * string description = 2; @@ -76,12 +80,24 @@ public interface EvaluationJobOrBuilder 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. @@ -92,13 +108,15 @@ public interface EvaluationJobOrBuilder * * *
-   * Describes the schedule on which the job will be executed. Minimum schedule
-   * unit is 1 day.
-   * The schedule can be either of the following types:
-   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-   * * English-like
-   * [schedule](https:
-   * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * 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
+   * you specify a 50-hour interval, the job runs every 2 days.
+   * You can provide the schedule in
+   * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+   * [English-like
+   * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+   * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+   * interval from this schedule is used, not the specific time of day.
    * 
* * string schedule = 4; @@ -110,13 +128,15 @@ public interface EvaluationJobOrBuilder * * *
-   * Describes the schedule on which the job will be executed. Minimum schedule
-   * unit is 1 day.
-   * The schedule can be either of the following types:
-   * * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
-   * * English-like
-   * [schedule](https:
-   * //cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
+   * 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
+   * you specify a 50-hour interval, the job runs every 2 days.
+   * You can provide the schedule in
+   * [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an
+   * [English-like
+   * format](/appengine/docs/standard/python/config/cronref#schedule_format).
+   * Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
+   * interval from this schedule is used, not the specific time of day.
    * 
* * string schedule = 4; @@ -129,9 +149,12 @@ public interface EvaluationJobOrBuilder * * *
-   * The versioned model that is being evaluated here.
-   * Only one job is allowed for each model name.
-   * Format: 'projects/*/models/*/versions/*'
+   * Required. The [AI Platform Prediction model
+   * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+   * input and output is sampled from this model version. When creating an
+   * evaluation job, specify the model version in the following format:
+   * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+   * There can only be one evaluation job per model version.
    * 
* * string model_version = 5; @@ -143,9 +166,12 @@ public interface EvaluationJobOrBuilder * * *
-   * The versioned model that is being evaluated here.
-   * Only one job is allowed for each model name.
-   * Format: 'projects/*/models/*/versions/*'
+   * Required. The [AI Platform Prediction model
+   * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
+   * input and output is sampled from this model version. When creating an
+   * evaluation job, specify the model version in the following format:
+   * "projects/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"
+   * There can only be one evaluation job per model version.
    * 
* * string model_version = 5; @@ -158,7 +184,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -170,7 +196,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -182,7 +208,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Detailed config for running this eval job.
+   * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; @@ -194,7 +220,11 @@ public interface EvaluationJobOrBuilder * * *
-   * Name of the 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
+   * resource before you create an evaluation job and provide its name in the
+   * following format:
+   * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string annotation_spec_set = 7; @@ -206,7 +236,11 @@ public interface EvaluationJobOrBuilder * * *
-   * Name of the 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
+   * resource before you create an evaluation job and provide its name in the
+   * following format:
+   * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string annotation_spec_set = 7; @@ -219,8 +253,11 @@ public interface EvaluationJobOrBuilder * * *
-   * If a human annotation should be requested when some data don't have ground
-   * truth.
+   * Required. Whether you want Data Labeling Service to provide ground truth
+   * labels for prediction input. If you want the service to assign human
+   * labelers to annotate your data, set this to `true`. If you want to provide
+   * your own ground truth labels in the evaluation job's BigQuery table, set
+   * this to `false`.
    * 
* * bool label_missing_ground_truth = 8; @@ -233,8 +270,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -244,8 +281,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -255,8 +292,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -266,8 +303,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -278,8 +315,8 @@ public interface EvaluationJobOrBuilder * * *
-   * Output only. Any attempts with errors happening in evaluation job runs each
-   * time will be recorded here incrementally.
+   * Output only. Every time the evaluation job runs and an error occurs, the
+   * failed attempt is appended to this array.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9; @@ -290,7 +327,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -302,7 +339,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; @@ -314,7 +351,7 @@ public interface EvaluationJobOrBuilder * * *
-   * Timestamp when this evaluation job was created.
+   * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; 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 index bd8ca57a..02326397 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,69 +59,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/datalabeling/v1beta1/eval" + "uation_job.proto\022!google.cloud.datalabel" + "ing.v1beta1\032\034google/api/annotations.prot" - + "o\032/google/cloud/datalabeling/v1beta1/dat" - + "aset.proto\0322google/cloud/datalabeling/v1" - + "beta1/evaluation.proto\032?google/cloud/dat" - + "alabeling/v1beta1/human_annotation_confi" - + "g.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\"\376\003\n\rEvaluation" - + "Job\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022E" - + "\n\005state\030\003 \001(\01626.google.cloud.datalabelin" - + "g.v1beta1.EvaluationJob.State\022\020\n\010schedul" - + "e\030\004 \001(\t\022\025\n\rmodel_version\030\005 \001(\t\022U\n\025evalua" - + "tion_job_config\030\006 \001(\01326.google.cloud.dat" - + "alabeling.v1beta1.EvaluationJobConfig\022\033\n" - + "\023annotation_spec_set\030\007 \001(\t\022\"\n\032label_miss" - + "ing_ground_truth\030\010 \001(\010\022<\n\010attempts\030\t \003(\013" - + "2*.google.cloud.datalabeling.v1beta1.Att" - + "empt\022/\n\013create_time\030\n \001(\0132\032.google.proto" - + "buf.Timestamp\"S\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\r\n\tSCHEDULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAU" - + "SED\020\003\022\013\n\007STOPPED\020\004\"\252\t\n\023EvaluationJobConf" - + "ig\022c\n\033image_classification_config\030\004 \001(\0132" - + "<.google.cloud.datalabeling.v1beta1.Imag" - + "eClassificationConfigH\000\022U\n\024bounding_poly" - + "_config\030\005 \001(\01325.google.cloud.datalabelin" - + "g.v1beta1.BoundingPolyConfigH\000\022c\n\033video_" - + "classification_config\030\006 \001(\0132<.google.clo" - + "ud.datalabeling.v1beta1.VideoClassificat" - + "ionConfigH\000\022[\n\027object_detection_config\030\007" - + " \001(\01328.google.cloud.datalabeling.v1beta1" - + ".ObjectDetectionConfigH\000\022a\n\032text_classif" - + "ication_config\030\010 \001(\0132;.google.cloud.data" - + "labeling.v1beta1.TextClassificationConfi" - + "gH\000\022Y\n\026object_tracking_config\030\014 \001(\01327.go" - + "ogle.cloud.datalabeling.v1beta1.ObjectTr" - + "ackingConfigH\000\022D\n\014input_config\030\001 \001(\0132..g" - + "oogle.cloud.datalabeling.v1beta1.InputCo" - + "nfig\022N\n\021evaluation_config\030\002 \001(\01323.google" - + ".cloud.datalabeling.v1beta1.EvaluationCo" - + "nfig\022Y\n\027human_annotation_config\030\003 \001(\01328." - + "google.cloud.datalabeling.v1beta1.HumanA" - + "nnotationConfig\022l\n\024bigquery_import_keys\030" - + "\t \003(\0132N.google.cloud.datalabeling.v1beta" - + "1.EvaluationJobConfig.BigqueryImportKeys" - + "Entry\022\025\n\rexample_count\030\n \001(\005\022!\n\031example_" - + "sample_percentage\030\013 \001(\001\022`\n\033evaluation_jo" - + "b_alert_config\030\r \001(\0132;.google.cloud.data" - + "labeling.v1beta1.EvaluationJobAlertConfi" - + "g\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotation" - + "_request_config\"X\n\030EvaluationJobAlertCon" - + "fig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_mea" - + "n_average_precision\030\002 \001(\001\"i\n\007Attempt\0220\n\014" - + "attempt_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\020partial_failures\030\002 \003(\0132\022.googl" - + "e.rpc.StatusBx\n%com.google.cloud.datalab" - + "eling.v1beta1P\001ZMgoogle.golang.org/genpr" - + "oto/googleapis/cloud/datalabeling/v1beta" - + "1;datalabelingb\006proto3" + + "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.StatusBx\n%com.google.cloud.datal" + + "abeling.v1beta1P\001ZMgoogle.golang.org/gen" + + "proto/googleapis/cloud/datalabeling/v1be" + + "ta1;datalabelingb\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(), @@ -153,10 +150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", - "VideoClassificationConfig", - "ObjectDetectionConfig", "TextClassificationConfig", - "ObjectTrackingConfig", "InputConfig", "EvaluationConfig", "HumanAnnotationConfig", @@ -192,7 +186,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); diff --git a/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 index 5393a09b..b5fd1bad 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 96836254..c003912c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d1006b11..7c50e238 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1bc40ff3..66d5ce69 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,9 +27,9 @@ public interface EvaluationOrBuilder * * *
-   * Resource name of an evaluation.
-   * Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * Output only. Resource name of an evaluation. The name has the following
+   * format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
    * 
* * string name = 1; @@ -41,9 +41,9 @@ public interface EvaluationOrBuilder * * *
-   * Resource name of an evaluation.
-   * Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * Output only. Resource name of an evaluation. The name has the following
+   * format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
    * 
* * string name = 1; @@ -56,7 +56,8 @@ public interface EvaluationOrBuilder * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -68,7 +69,8 @@ public interface EvaluationOrBuilder * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -80,7 +82,8 @@ public interface EvaluationOrBuilder * * *
-   * Options used in evaluation plan for creating the evaluation.
+   * Output only. Options used in the evaluation job that created this
+   * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; @@ -91,8 +94,8 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -104,8 +107,8 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -117,8 +120,8 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when the evaluation plan triggered this evaluation
-   * flow.
+   * Output only. Timestamp for when the evaluation job that created this
+   * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; @@ -129,7 +132,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -141,7 +144,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -153,7 +156,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Timestamp when this model evaluation was created.
+   * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; @@ -164,7 +167,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -176,7 +179,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -188,7 +191,7 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Metrics of the evaluation.
+   * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; @@ -199,8 +202,10 @@ public interface EvaluationOrBuilder * * *
-   * Type of the annotation to compute metrics for in the groundtruth and
-   * annotation labeled dataset. Required for creation.
+   * Output only. Type of task that the model version being evaluated performs,
+   * as defined in the
+   * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+   * field of the evaluation job that created this evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -212,8 +217,10 @@ public interface EvaluationOrBuilder * * *
-   * Type of the annotation to compute metrics for in the groundtruth and
-   * annotation labeled dataset. Required for creation.
+   * Output only. Type of task that the model version being evaluated performs,
+   * as defined in the
+   * [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]
+   * field of the evaluation job that created this evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; @@ -226,8 +233,9 @@ public interface EvaluationOrBuilder * * *
-   * Output only. Count of items in groundtruth dataset included in this
-   * evaluation. Will be unset if annotation type is not applicable.
+   * 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
+   * AnnotationTypes.
    * 
* * int64 evaluated_item_count = 7; 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 index b8a851e5..67deecb1 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -82,69 +82,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/datalabeling/v1beta1/eval" + "uation.proto\022!google.cloud.datalabeling." - + "v1beta1\032\034google/api/annotations.proto\0322g" - + "oogle/cloud/datalabeling/v1beta1/annotat" - + "ion.proto\032;google/cloud/datalabeling/v1b" - + "eta1/annotation_spec_set.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\211\003\n\nEvaluation\022\014" - + "\n\004name\030\001 \001(\t\022C\n\006config\030\002 \001(\01323.google.cl" - + "oud.datalabeling.v1beta1.EvaluationConfi" - + "g\022;\n\027evaluation_job_run_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022/\n\013create_time\030\004 " - + "\001(\0132\032.google.protobuf.Timestamp\022P\n\022evalu" - + "ation_metrics\030\005 \001(\01324.google.cloud.datal" - + "abeling.v1beta1.EvaluationMetrics\022J\n\017ann" - + "otation_type\030\006 \001(\01621.google.cloud.datala" - + "beling.v1beta1.AnnotationType\022\034\n\024evaluat" - + "ed_item_count\030\007 \001(\003\"\221\001\n\020EvaluationConfig" - + "\022j\n\037bounding_box_evaluation_options\030\001 \001(" - + "\0132?.google.cloud.datalabeling.v1beta1.Bo" - + "undingBoxEvaluationOptionsH\000B\021\n\017vertical" - + "_option\"5\n\034BoundingBoxEvaluationOptions\022" - + "\025\n\riou_threshold\030\001 \001(\002\"\331\001\n\021EvaluationMet" - + "rics\022Z\n\026classification_metrics\030\001 \001(\01328.g" - + "oogle.cloud.datalabeling.v1beta1.Classif" - + "icationMetricsH\000\022]\n\030object_detection_met" - + "rics\030\002 \001(\01329.google.cloud.datalabeling.v" - + "1beta1.ObjectDetectionMetricsH\000B\t\n\007metri" - + "cs\"\243\001\n\025ClassificationMetrics\022<\n\010pr_curve" - + "\030\001 \001(\0132*.google.cloud.datalabeling.v1bet" - + "a1.PrCurve\022L\n\020confusion_matrix\030\002 \001(\01322.g" - + "oogle.cloud.datalabeling.v1beta1.Confusi" - + "onMatrix\"V\n\026ObjectDetectionMetrics\022<\n\010pr" - + "_curve\030\001 \001(\0132*.google.cloud.datalabeling" - + ".v1beta1.PrCurve\"\346\003\n\007PrCurve\022J\n\017annotati" - + "on_spec\030\001 \001(\01321.google.cloud.datalabelin" - + "g.v1beta1.AnnotationSpec\022\030\n\020area_under_c" - + "urve\030\002 \001(\002\022e\n\032confidence_metrics_entries" - + "\030\003 \003(\0132A.google.cloud.datalabeling.v1bet" - + "a1.PrCurve.ConfidenceMetricsEntry\022\036\n\026mea" - + "n_average_precision\030\004 \001(\002\032\355\001\n\026Confidence" - + "MetricsEntry\022\034\n\024confidence_threshold\030\001 \001" - + "(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n" - + "\010f1_score\030\004 \001(\002\022\022\n\nrecall_at1\030\005 \001(\002\022\025\n\rp" - + "recision_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\rprecision_at5\030\t " - + "\001(\002\022\024\n\014f1_score_at5\030\n \001(\002\"\374\002\n\017ConfusionM" - + "atrix\022C\n\003row\030\001 \003(\01326.google.cloud.datala" - + "beling.v1beta1.ConfusionMatrix.Row\032v\n\024Co" - + "nfusionMatrixEntry\022J\n\017annotation_spec\030\001 " + + "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\022\022\n\nitem_count\030\002 \001(\005\032\253\001\n\003R" - + "ow\022J\n\017annotation_spec\030\001 \001(\01321.google.clo" - + "ud.datalabeling.v1beta1.AnnotationSpec\022X" - + "\n\007entries\030\002 \003(\0132G.google.cloud.datalabel" - + "ing.v1beta1.ConfusionMatrix.ConfusionMat" - + "rixEntryBx\n%com.google.cloud.datalabelin" - + "g.v1beta1P\001ZMgoogle.golang.org/genproto/" - + "googleapis/cloud/datalabeling/v1beta1;da" - + "talabelingb\006proto3" + + "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google" + + ".cloud.datalabeling.v1beta1.ConfusionMat" + + "rix.ConfusionMatrixEntryBx\n%com.google.c" + + "loud.datalabeling.v1beta1P\001ZMgoogle.gola" + + "ng.org/genproto/googleapis/cloud/datalab" + + "eling/v1beta1;datalabelingb\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(), @@ -261,7 +265,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); diff --git a/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 index 305a3bd9..9c595964 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -129,7 +129,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return A list containing the annotationSpecSets. */ @@ -145,7 +146,8 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The count of annotationSpecSets. */ @@ -161,7 +163,8 @@ public int getAnnotationSpecSetsCount() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -178,7 +181,8 @@ public java.lang.String getAnnotationSpecSets(int index) { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -543,7 +547,8 @@ private void ensureAnnotationSpecSetsIsMutable() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return A list containing the annotationSpecSets. */ @@ -559,7 +564,8 @@ public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The count of annotationSpecSets. */ @@ -575,7 +581,8 @@ public int getAnnotationSpecSetsCount() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -592,7 +599,8 @@ public java.lang.String getAnnotationSpecSets(int index) { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -609,7 +617,8 @@ public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index) { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -633,7 +642,8 @@ public Builder setAnnotationSpecSets(int index, java.lang.String value) { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The annotationSpecSets to add. * @return This builder for chaining. @@ -656,7 +666,8 @@ public Builder addAnnotationSpecSets(java.lang.String value) { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @param values The annotationSpecSets to add. * @return This builder for chaining. @@ -676,7 +687,8 @@ public Builder addAllAnnotationSpecSets(java.lang.Iterable val * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -695,7 +707,8 @@ public Builder clearAnnotationSpecSets() { * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. diff --git a/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 index 0ee8dad0..1002aafa 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,8 @@ public interface EventConfigOrBuilder * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return A list containing the annotationSpecSets. */ @@ -46,7 +47,8 @@ public interface EventConfigOrBuilder * at the same time. * * - * repeated string annotation_spec_sets = 1; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The count of annotationSpecSets. */ @@ -60,7 +62,8 @@ public interface EventConfigOrBuilder * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. @@ -75,7 +78,8 @@ public interface EventConfigOrBuilder * at the same time. * * - * repeated string annotation_spec_sets = 1; + * 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. diff --git a/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 index 4439919c..616bdd5c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 878cbe11..a6836fe8 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 21d7b339..89a81eb4 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ff0cb25d..2148df9e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -148,7 +148,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Output only. The name of dataset to be exported.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -171,7 +171,7 @@ public java.lang.String getDataset() { * *
    * Output only. The name of dataset to be exported.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -724,7 +724,7 @@ public Builder mergeFrom( * *
      * Output only. The name of dataset to be exported.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -747,7 +747,7 @@ public java.lang.String getDataset() { * *
      * Output only. The name of dataset to be exported.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -770,7 +770,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * *
      * Output only. The name of dataset to be exported.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -792,7 +792,7 @@ public Builder setDataset(java.lang.String value) { * *
      * Output only. The name of dataset to be exported.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -810,7 +810,7 @@ public Builder clearDataset() { * *
      * Output only. The name of dataset to be exported.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; diff --git a/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 index d557dfc8..e55f8e78 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ public interface ExportDataOperationMetadataOrBuilder * *
    * Output only. The name of dataset to be exported.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -41,7 +41,7 @@ public interface ExportDataOperationMetadataOrBuilder * *
    * Output only. The name of dataset to be exported.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; diff --git a/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 index cbcc6abd..8944428b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -161,7 +161,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Ouptut only. The name of dataset.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -184,7 +184,7 @@ public java.lang.String getDataset() { * *
    * Ouptut only. The name of dataset.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -744,7 +744,7 @@ public Builder mergeFrom( * *
      * Ouptut only. The name of dataset.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -767,7 +767,7 @@ public java.lang.String getDataset() { * *
      * Ouptut only. The name of dataset.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * *
      * Ouptut only. The name of dataset.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -812,7 +812,7 @@ public Builder setDataset(java.lang.String value) { * *
      * Ouptut only. The name of dataset.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; @@ -830,7 +830,7 @@ public Builder clearDataset() { * *
      * Ouptut only. The name of dataset.
-     * "projects/*/datasets/*/Datasets/*"
+     * "projects/*/datasets/*"
      * 
* * string dataset = 1; diff --git a/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 index 4bf93dd5..0e31db84 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ public interface ExportDataOperationResponseOrBuilder * *
    * Ouptut only. The name of dataset.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; @@ -41,7 +41,7 @@ public interface ExportDataOperationResponseOrBuilder * *
    * Ouptut only. The name of dataset.
-   * "projects/*/datasets/*/Datasets/*"
+   * "projects/*/datasets/*"
    * 
* * string dataset = 1; diff --git a/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 index 99f9519f..fb5e6815 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -162,7 +162,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -185,7 +187,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -214,7 +218,9 @@ public com.google.protobuf.ByteString getNameBytes() { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The annotatedDataset. */ @@ -240,7 +246,9 @@ public java.lang.String getAnnotatedDataset() { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for annotatedDataset. */ @@ -265,7 +273,7 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -287,7 +295,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -312,7 +320,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the outputConfig field is set. */ @@ -326,7 +336,9 @@ public boolean hasOutputConfig() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The outputConfig. */ @@ -342,7 +354,9 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); @@ -801,7 +815,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -824,7 +840,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -847,7 +865,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -869,7 +889,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -887,7 +909,9 @@ public Builder clearName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * 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. @@ -915,7 +939,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The annotatedDataset. */ @@ -941,7 +967,9 @@ public java.lang.String getAnnotatedDataset() { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for annotatedDataset. */ @@ -967,7 +995,9 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The annotatedDataset to set. * @return This builder for chaining. @@ -992,7 +1022,9 @@ public Builder setAnnotatedDataset(java.lang.String value) { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1013,7 +1045,9 @@ public Builder clearAnnotatedDataset() { * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * 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. @@ -1037,7 +1071,7 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1059,7 +1093,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1081,7 +1115,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1102,7 +1136,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1119,7 +1153,7 @@ public Builder clearFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -1148,7 +1182,9 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the outputConfig field is set. */ @@ -1162,7 +1198,9 @@ public boolean hasOutputConfig() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The outputConfig. */ @@ -1182,7 +1220,9 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .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) { @@ -1204,7 +1244,9 @@ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfi * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder builderForValue) { @@ -1224,7 +1266,9 @@ public Builder setOutputConfig( * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .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) { @@ -1250,7 +1294,9 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1270,7 +1316,9 @@ public Builder clearOutputConfig() { * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { @@ -1284,7 +1332,9 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfi * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { @@ -1302,7 +1352,9 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.OutputConfig, diff --git a/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 index eb470ffc..f9b528d3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ExportDataRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface ExportDataRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -61,7 +65,9 @@ public interface ExportDataRequestOrBuilder * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The annotatedDataset. */ @@ -77,7 +83,9 @@ public interface ExportDataRequestOrBuilder * {annotated_dataset_id} * * - * string annotated_dataset = 2; + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for annotatedDataset. */ @@ -90,7 +98,7 @@ public interface ExportDataRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -102,7 +110,7 @@ public interface ExportDataRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 3; + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -115,7 +123,9 @@ public interface ExportDataRequestOrBuilder * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the outputConfig field is set. */ @@ -127,7 +137,9 @@ public interface ExportDataRequestOrBuilder * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The outputConfig. */ @@ -139,7 +151,9 @@ public interface ExportDataRequestOrBuilder * Required. Specify the output destination. * * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); diff --git a/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 index 99193a25..ced59145 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d46c920c..3c22890c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 54cf55d9..4cbe6ada 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 7ef2cf2b..25a2d04f 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3fd73182..209a7f33 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index b93c3c77..5243a9cf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 6ca7742f..0d72e9bf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,7 +122,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -146,7 +148,9 @@ public java.lang.String getName() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -495,7 +499,9 @@ public Builder mergeFrom( * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -519,7 +525,9 @@ public java.lang.String getName() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -543,7 +551,9 @@ public com.google.protobuf.ByteString getNameBytes() { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -566,7 +576,9 @@ public Builder setName(java.lang.String value) { * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -585,7 +597,9 @@ public Builder clearName() { * {annotated_dataset_id} * * - * string name = 1; + * + * 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. 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 index fa85f05b..c3a93ffd 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ public interface GetAnnotatedDatasetRequestOrBuilder * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -46,7 +48,9 @@ public interface GetAnnotatedDatasetRequestOrBuilder * {annotated_dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 90f55add..322923b8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -494,7 +498,9 @@ public Builder mergeFrom( * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -517,7 +523,9 @@ public java.lang.String getName() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -540,7 +548,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -562,7 +572,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -580,7 +592,9 @@ public Builder clearName() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * 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. 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 index 03d5c94b..344c32f1 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface GetAnnotationSpecSetRequestOrBuilder * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface GetAnnotationSpecSetRequestOrBuilder * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 79a2c57c..58e457ec 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -488,7 +492,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -511,7 +517,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -534,7 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -556,7 +566,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -574,7 +586,9 @@ public Builder clearName() { * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * 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. 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 index 15906289..d4abc0d2 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface GetDataItemRequestOrBuilder * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface GetDataItemRequestOrBuilder * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 3457b37d..f3ba08b7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -488,7 +492,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -511,7 +517,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -534,7 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -556,7 +566,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -574,7 +586,9 @@ public Builder clearName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * 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. 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 index 03e7fc2f..d52a1a6b 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface GetDatasetRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface GetDatasetRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index c4395d67..3591eb3d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,10 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of the evaluation job. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -141,10 +143,12 @@ public java.lang.String getName() { * *
    * Required. Name of the evaluation job. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -488,10 +492,12 @@ public Builder mergeFrom( * *
      * Required. Name of the evaluation job. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -511,10 +517,12 @@ public java.lang.String getName() { * *
      * Required. Name of the evaluation job. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -534,10 +542,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Name of the evaluation job. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -556,10 +566,12 @@ public Builder setName(java.lang.String value) { * *
      * Required. Name of the evaluation job. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -574,10 +586,12 @@ public Builder clearName() { * *
      * Required. Name of the evaluation job. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * 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. 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 index de46420b..f79c6b2a 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,12 @@ public interface GetEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -41,10 +43,12 @@ public interface GetEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index a01df13b..afca60fd 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,10 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of the evaluation. Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -141,10 +143,12 @@ public java.lang.String getName() { * *
    * Required. Name of the evaluation. Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -485,10 +489,12 @@ public Builder mergeFrom( * *
      * Required. Name of the evaluation. Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -508,10 +514,12 @@ public java.lang.String getName() { * *
      * Required. Name of the evaluation. Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -531,10 +539,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Name of the evaluation. Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -553,10 +563,12 @@ public Builder setName(java.lang.String value) { * *
      * Required. Name of the evaluation. Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -571,10 +583,12 @@ public Builder clearName() { * *
      * Required. Name of the evaluation. Format:
-     * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+     * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string name = 1; + * + * 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. 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 index 37fbbd10..1840f224 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,12 @@ public interface GetEvaluationRequestOrBuilder * *
    * Required. Name of the evaluation. Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -41,10 +43,12 @@ public interface GetEvaluationRequestOrBuilder * *
    * Required. Name of the evaluation. Format:
-   * 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}'
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 12cdb1a8..68e8acdf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -130,7 +130,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -154,7 +156,9 @@ public java.lang.String getName() { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -181,7 +185,7 @@ public com.google.protobuf.ByteString getNameBytes() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -205,7 +209,7 @@ public java.lang.String getFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -566,7 +570,9 @@ public Builder mergeFrom( * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -590,7 +596,9 @@ public java.lang.String getName() { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -614,7 +622,9 @@ public com.google.protobuf.ByteString getNameBytes() { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -637,7 +647,9 @@ public Builder setName(java.lang.String value) { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -656,7 +668,9 @@ public Builder clearName() { * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * 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. @@ -682,7 +696,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -706,7 +720,7 @@ public java.lang.String getFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -730,7 +744,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -753,7 +767,7 @@ public Builder setFilter(java.lang.String value) { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -772,7 +786,7 @@ public Builder clearFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. diff --git a/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 index 1a7aab1f..e97e59af 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,7 +32,9 @@ public interface GetExampleRequestOrBuilder * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -46,7 +48,9 @@ public interface GetExampleRequestOrBuilder * {annotated_dataset_id}/examples/{example_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -61,7 +65,7 @@ public interface GetExampleRequestOrBuilder * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -75,7 +79,7 @@ public interface GetExampleRequestOrBuilder * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ diff --git a/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 index 023024b7..97c0d3ca 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -121,7 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -144,7 +146,9 @@ public java.lang.String getName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -488,7 +492,9 @@ public Builder mergeFrom( * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -511,7 +517,9 @@ public java.lang.String getName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -534,7 +542,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -556,7 +566,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -574,7 +586,9 @@ public Builder clearName() { * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * 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. 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 index e2104111..9d629047 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface GetInstructionRequestOrBuilder * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface GetInstructionRequestOrBuilder * projects/{project_id}/instructions/{instruction_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 10859047..9e28cda8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -195,7 +195,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The instruction. */ @@ -217,7 +217,7 @@ public java.lang.String getInstruction() { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for instruction. */ @@ -244,7 +244,8 @@ public com.google.protobuf.ByteString getInstructionBytes() { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotatedDatasetDisplayName. */ @@ -268,7 +269,8 @@ public java.lang.String getAnnotatedDatasetDisplayName() { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for annotatedDatasetDisplayName. */ @@ -294,7 +296,8 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The annotatedDatasetDescription. */ @@ -317,7 +320,8 @@ public java.lang.String getAnnotatedDatasetDescription() { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for annotatedDatasetDescription. */ @@ -343,7 +347,7 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The labelGroup. */ @@ -366,7 +370,7 @@ public java.lang.String getLabelGroup() { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for labelGroup. */ @@ -395,7 +399,7 @@ public com.google.protobuf.ByteString getLabelGroupBytes() { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The languageCode. */ @@ -421,7 +425,7 @@ public java.lang.String getLanguageCode() { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for languageCode. */ @@ -449,7 +453,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * For image related labeling, valid values are 1, 3, 5. * * - * int32 replica_count = 6; + * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The replicaCount. */ @@ -463,11 +467,13 @@ public int getReplicaCount() { * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the questionDuration field is set. */ @@ -478,11 +484,13 @@ public boolean hasQuestionDuration() { * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The questionDuration. */ @@ -495,11 +503,13 @@ public com.google.protobuf.Duration getQuestionDuration() { * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { return getQuestionDuration(); @@ -518,7 +528,7 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the contributorEmails. */ @@ -536,7 +546,7 @@ public com.google.protobuf.ProtocolStringList getContributorEmailsList() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of contributorEmails. */ @@ -554,7 +564,7 @@ public int getContributorEmailsCount() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -573,7 +583,7 @@ public java.lang.String getContributorEmails(int index) { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -1121,7 +1131,7 @@ public Builder mergeFrom( * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The instruction. */ @@ -1143,7 +1153,7 @@ public java.lang.String getInstruction() { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for instruction. */ @@ -1165,7 +1175,7 @@ public com.google.protobuf.ByteString getInstructionBytes() { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The instruction to set. * @return This builder for chaining. @@ -1186,7 +1196,7 @@ public Builder setInstruction(java.lang.String value) { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1203,7 +1213,7 @@ public Builder clearInstruction() { * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for instruction to set. * @return This builder for chaining. @@ -1229,7 +1239,8 @@ public Builder setInstructionBytes(com.google.protobuf.ByteString value) { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotatedDatasetDisplayName. */ @@ -1253,7 +1264,8 @@ public java.lang.String getAnnotatedDatasetDisplayName() { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for annotatedDatasetDisplayName. */ @@ -1277,7 +1289,8 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The annotatedDatasetDisplayName to set. * @return This builder for chaining. @@ -1300,7 +1313,8 @@ public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1319,7 +1333,8 @@ public Builder clearAnnotatedDatasetDisplayName() { * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The bytes for annotatedDatasetDisplayName to set. * @return This builder for chaining. @@ -1344,7 +1359,8 @@ public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteStrin * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The annotatedDatasetDescription. */ @@ -1367,7 +1383,8 @@ public java.lang.String getAnnotatedDatasetDescription() { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for annotatedDatasetDescription. */ @@ -1390,7 +1407,8 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The annotatedDatasetDescription to set. * @return This builder for chaining. @@ -1412,7 +1430,8 @@ public Builder setAnnotatedDatasetDescription(java.lang.String value) { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1430,7 +1449,8 @@ public Builder clearAnnotatedDatasetDescription() { * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes for annotatedDatasetDescription to set. * @return This builder for chaining. @@ -1455,7 +1475,7 @@ public Builder setAnnotatedDatasetDescriptionBytes(com.google.protobuf.ByteStrin * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The labelGroup. */ @@ -1478,7 +1498,7 @@ public java.lang.String getLabelGroup() { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for labelGroup. */ @@ -1501,7 +1521,7 @@ public com.google.protobuf.ByteString getLabelGroupBytes() { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The labelGroup to set. * @return This builder for chaining. @@ -1523,7 +1543,7 @@ public Builder setLabelGroup(java.lang.String value) { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1541,7 +1561,7 @@ public Builder clearLabelGroup() { * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for labelGroup to set. * @return This builder for chaining. @@ -1569,7 +1589,7 @@ public Builder setLabelGroupBytes(com.google.protobuf.ByteString value) { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The languageCode. */ @@ -1595,7 +1615,7 @@ public java.lang.String getLanguageCode() { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for languageCode. */ @@ -1621,7 +1641,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The languageCode to set. * @return This builder for chaining. @@ -1646,7 +1666,7 @@ public Builder setLanguageCode(java.lang.String value) { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1667,7 +1687,7 @@ public Builder clearLanguageCode() { * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for languageCode to set. * @return This builder for chaining. @@ -1694,7 +1714,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * For image related labeling, valid values are 1, 3, 5. * * - * int32 replica_count = 6; + * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The replicaCount. */ @@ -1711,7 +1731,7 @@ public int getReplicaCount() { * For image related labeling, valid values are 1, 3, 5. * * - * int32 replica_count = 6; + * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The replicaCount to set. * @return This builder for chaining. @@ -1732,7 +1752,7 @@ public Builder setReplicaCount(int value) { * For image related labeling, valid values are 1, 3, 5. * * - * int32 replica_count = 6; + * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1753,11 +1773,13 @@ public Builder clearReplicaCount() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the questionDuration field is set. */ @@ -1768,11 +1790,13 @@ public boolean hasQuestionDuration() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The questionDuration. */ @@ -1789,11 +1813,13 @@ public com.google.protobuf.Duration getQuestionDuration() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { @@ -1812,11 +1838,13 @@ public Builder setQuestionDuration(com.google.protobuf.Duration value) { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setQuestionDuration(com.google.protobuf.Duration.Builder builderForValue) { if (questionDurationBuilder_ == null) { @@ -1832,11 +1860,13 @@ public Builder setQuestionDuration(com.google.protobuf.Duration.Builder builderF * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { @@ -1859,11 +1889,13 @@ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearQuestionDuration() { if (questionDurationBuilder_ == null) { @@ -1880,11 +1912,13 @@ public Builder clearQuestionDuration() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getQuestionDurationBuilder() { @@ -1895,11 +1929,13 @@ public com.google.protobuf.Duration.Builder getQuestionDurationBuilder() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { if (questionDurationBuilder_ != null) { @@ -1914,11 +1950,13 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { * * *
-     * Optional. Maximum duration for contributors to answer a question. Default
-     * is 1800 seconds.
+     * Optional. Maximum duration for contributors to answer a question. Maximum
+     * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -1957,7 +1995,8 @@ private void ensureContributorEmailsIsMutable() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the contributorEmails. */ @@ -1975,7 +2014,8 @@ public com.google.protobuf.ProtocolStringList getContributorEmailsList() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of contributorEmails. */ @@ -1993,7 +2033,8 @@ public int getContributorEmailsCount() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -2012,7 +2053,8 @@ public java.lang.String getContributorEmails(int index) { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -2031,7 +2073,8 @@ public com.google.protobuf.ByteString getContributorEmailsBytes(int index) { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -2057,7 +2100,8 @@ public Builder setContributorEmails(int index, java.lang.String value) { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The contributorEmails to add. * @return This builder for chaining. @@ -2082,7 +2126,8 @@ public Builder addContributorEmails(java.lang.String value) { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The contributorEmails to add. * @return This builder for chaining. @@ -2104,7 +2149,8 @@ public Builder addAllContributorEmails(java.lang.Iterable valu * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -2125,7 +2171,8 @@ public Builder clearContributorEmails() { * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the contributorEmails to add. * @return This builder for chaining. diff --git a/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 index fe846d91..0ca187a5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface HumanAnnotationConfigOrBuilder * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The instruction. */ @@ -42,7 +42,7 @@ public interface HumanAnnotationConfigOrBuilder * Required. Instruction resource name. * * - * string instruction = 1; + * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for instruction. */ @@ -57,7 +57,8 @@ public interface HumanAnnotationConfigOrBuilder * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The annotatedDatasetDisplayName. */ @@ -71,7 +72,8 @@ public interface HumanAnnotationConfigOrBuilder * . * * - * string annotated_dataset_display_name = 2; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for annotatedDatasetDisplayName. */ @@ -85,7 +87,8 @@ public interface HumanAnnotationConfigOrBuilder * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The annotatedDatasetDescription. */ @@ -98,7 +101,8 @@ public interface HumanAnnotationConfigOrBuilder * The description can be up to 10000 characters long. * * - * string annotated_dataset_description = 3; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bytes for annotatedDatasetDescription. */ @@ -112,7 +116,7 @@ public interface HumanAnnotationConfigOrBuilder * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The labelGroup. */ @@ -125,7 +129,7 @@ public interface HumanAnnotationConfigOrBuilder * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`. * * - * string label_group = 4; + * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for labelGroup. */ @@ -142,7 +146,7 @@ public interface HumanAnnotationConfigOrBuilder * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The languageCode. */ @@ -158,7 +162,7 @@ public interface HumanAnnotationConfigOrBuilder * text classification. * * - * string language_code = 5; + * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for languageCode. */ @@ -174,7 +178,7 @@ public interface HumanAnnotationConfigOrBuilder * For image related labeling, valid values are 1, 3, 5. * * - * int32 replica_count = 6; + * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The replicaCount. */ @@ -184,11 +188,13 @@ public interface HumanAnnotationConfigOrBuilder * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the questionDuration field is set. */ @@ -197,11 +203,13 @@ public interface HumanAnnotationConfigOrBuilder * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The questionDuration. */ @@ -210,11 +218,13 @@ public interface HumanAnnotationConfigOrBuilder * * *
-   * Optional. Maximum duration for contributors to answer a question. Default
-   * is 1800 seconds.
+   * Optional. Maximum duration for contributors to answer a question. Maximum
+   * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder(); @@ -229,7 +239,7 @@ public interface HumanAnnotationConfigOrBuilder * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the contributorEmails. */ @@ -245,7 +255,7 @@ public interface HumanAnnotationConfigOrBuilder * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of contributorEmails. */ @@ -261,7 +271,7 @@ public interface HumanAnnotationConfigOrBuilder * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. @@ -278,7 +288,7 @@ public interface HumanAnnotationConfigOrBuilder * https://crowd-compute.appspot.com/ * * - * repeated string contributor_emails = 9; + * 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. 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 index b3c516af..fdd3025b 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,56 +91,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n?google/cloud/datalabeling/v1beta1/huma" + "n_annotation_config.proto\022!google.cloud." + "datalabeling.v1beta1\032\034google/api/annotat" - + "ions.proto\032\036google/protobuf/duration.pro" - + "to\"\254\002\n\025HumanAnnotationConfig\022\023\n\013instruct" - + "ion\030\001 \001(\t\022&\n\036annotated_dataset_display_n" - + "ame\030\002 \001(\t\022%\n\035annotated_dataset_descripti" - + "on\030\003 \001(\t\022\023\n\013label_group\030\004 \001(\t\022\025\n\rlanguag" - + "e_code\030\005 \001(\t\022\025\n\rreplica_count\030\006 \001(\005\0224\n\021q" - + "uestion_duration\030\007 \001(\0132\031.google.protobuf" - + ".Duration\022\032\n\022contributor_emails\030\t \003(\t\022\032\n" - + "\022user_email_address\030\n \001(\t\"\256\001\n\031ImageClass" - + "ificationConfig\022\033\n\023annotation_spec_set\030\001" - + " \001(\t\022\031\n\021allow_multi_label\030\002 \001(\010\022Y\n\027answe" - + "r_aggregation_type\030\003 \001(\01628.google.cloud." - + "datalabeling.v1beta1.StringAggregationTy" - + "pe\"N\n\022BoundingPolyConfig\022\033\n\023annotation_s" - + "pec_set\030\001 \001(\t\022\033\n\023instruction_message\030\002 \001" - + "(\t\"J\n\016PolylineConfig\022\033\n\023annotation_spec_" - + "set\030\001 \001(\t\022\033\n\023instruction_message\030\002 \001(\t\"N" - + "\n\022SegmentationConfig\022\033\n\023annotation_spec_" - + "set\030\001 \001(\t\022\033\n\023instruction_message\030\002 \001(\t\"\207" - + "\002\n\031VideoClassificationConfig\022y\n\033annotati" - + "on_spec_set_configs\030\001 \003(\0132T.google.cloud" - + ".datalabeling.v1beta1.VideoClassificatio" - + "nConfig.AnnotationSpecSetConfig\022\034\n\024apply" - + "_shot_detection\030\002 \001(\010\032Q\n\027AnnotationSpecS" - + "etConfig\022\033\n\023annotation_spec_set\030\001 \001(\t\022\031\n" - + "\021allow_multi_label\030\002 \001(\010\"S\n\025ObjectDetect" - + "ionConfig\022\033\n\023annotation_spec_set\030\001 \001(\t\022\035" - + "\n\025extraction_frame_rate\030\003 \001(\001\"3\n\024ObjectT" - + "rackingConfig\022\033\n\023annotation_spec_set\030\001 \001" - + "(\t\"+\n\013EventConfig\022\034\n\024annotation_spec_set" - + "s\030\001 \003(\t\"\240\001\n\030TextClassificationConfig\022\031\n\021" - + "allow_multi_label\030\001 \001(\010\022\033\n\023annotation_sp" - + "ec_set\030\002 \001(\t\022L\n\020sentiment_config\030\003 \001(\01322" - + ".google.cloud.datalabeling.v1beta1.Senti" - + "mentConfig\";\n\017SentimentConfig\022(\n enable_" - + "label_sentiment_selection\030\001 \001(\010\"9\n\032TextE" - + "ntityExtractionConfig\022\033\n\023annotation_spec" - + "_set\030\001 \001(\t*{\n\025StringAggregationType\022\'\n#S" - + "TRING_AGGREGATION_TYPE_UNSPECIFIED\020\000\022\021\n\r" - + "MAJORITY_VOTE\020\001\022\022\n\016UNANIMOUS_VOTE\020\002\022\022\n\016N" - + "O_AGGREGATION\020\003Bx\n%com.google.cloud.data" - + "labeling.v1beta1P\001ZMgoogle.golang.org/ge" - + "nproto/googleapis/cloud/datalabeling/v1b" - + "eta1;datalabelingb\006proto3" + + "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\003Bx\n%com.goog" + + "le.cloud.datalabeling.v1beta1P\001ZMgoogle." + + "golang.org/genproto/googleapis/cloud/dat" + + "alabeling/v1beta1;datalabelingb\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 = @@ -257,7 +262,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); } diff --git a/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 index 4e0914ad..6912a59e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 2ca813fe..ab9d5172 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 29423047..14c1f443 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ef428bd7..adb37fa9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 2b0980f5..0ba57259 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -133,7 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -155,7 +155,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -181,7 +181,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * multiple labels for one image. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -198,7 +198,8 @@ public boolean getAllowMultiLabel() { * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for answerAggregationType. @@ -213,7 +214,8 @@ public int getAnswerAggregationTypeValue() { * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The answerAggregationType. @@ -594,7 +596,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -616,7 +618,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -638,7 +640,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -659,7 +661,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -676,7 +678,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -701,7 +703,7 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * multiple labels for one image. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -716,7 +718,7 @@ public boolean getAllowMultiLabel() { * multiple labels for one image. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowMultiLabel to set. * @return This builder for chaining. @@ -735,7 +737,7 @@ public Builder setAllowMultiLabel(boolean value) { * multiple labels for one image. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -754,7 +756,8 @@ public Builder clearAllowMultiLabel() { * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for answerAggregationType. @@ -769,7 +772,8 @@ public int getAnswerAggregationTypeValue() { * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .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. @@ -787,7 +791,8 @@ public Builder setAnswerAggregationTypeValue(int value) { * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The answerAggregationType. @@ -808,7 +813,8 @@ public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggr * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The answerAggregationType to set. @@ -831,7 +837,8 @@ public Builder setAnswerAggregationType( * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. diff --git a/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 index 16e861e5..d1a91c09 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface ImageClassificationConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface ImageClassificationConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -56,7 +56,7 @@ public interface ImageClassificationConfigOrBuilder * multiple labels for one image. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -69,7 +69,8 @@ public interface ImageClassificationConfigOrBuilder * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for answerAggregationType. @@ -82,7 +83,8 @@ public interface ImageClassificationConfigOrBuilder * Optional. The type of how to aggregate answers. * * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The answerAggregationType. diff --git a/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 index 2e38bbca..1488b7fa 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index eba55ec7..ac665631 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 35590410..87c6f073 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index f4f7502c..fa8d45c5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 580a3361..138d944d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 16c75d05..543512a9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 85df6d90..2ea5581e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -147,7 +147,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Ouptut only. The name of imported dataset.
+   * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* @@ -170,7 +170,7 @@ public java.lang.String getDataset() { * * *
-   * Ouptut only. The name of imported dataset.
+   * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* @@ -723,7 +723,7 @@ public Builder mergeFrom( * * *
-     * Ouptut only. The name of imported dataset.
+     * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* @@ -746,7 +746,7 @@ public java.lang.String getDataset() { * * *
-     * Ouptut only. The name of imported dataset.
+     * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* @@ -769,7 +769,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * *
-     * Ouptut only. The name of imported dataset.
+     * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* @@ -791,7 +791,7 @@ public Builder setDataset(java.lang.String value) { * * *
-     * Ouptut only. The name of imported dataset.
+     * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* @@ -809,7 +809,7 @@ public Builder clearDataset() { * * *
-     * Ouptut only. The name of imported dataset.
+     * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* diff --git a/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 index 1e5327fa..8bfa49a2 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ public interface ImportDataOperationMetadataOrBuilder * * *
-   * Ouptut only. The name of imported dataset.
+   * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* @@ -40,7 +40,7 @@ public interface ImportDataOperationMetadataOrBuilder * * *
-   * Ouptut only. The name of imported dataset.
+   * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* diff --git a/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 index a7359331..f61913cf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 73fe65fe..e004729a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0fc4c165..9914d5e6 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -146,7 +146,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -169,7 +171,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -194,7 +198,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the inputConfig field is set. */ @@ -208,7 +214,9 @@ public boolean hasInputConfig() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The inputConfig. */ @@ -224,7 +232,9 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { return getInputConfig(); @@ -651,7 +661,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -674,7 +686,9 @@ public java.lang.String getName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -697,7 +711,9 @@ public com.google.protobuf.ByteString getNameBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -719,7 +735,9 @@ public Builder setName(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -737,7 +755,9 @@ public Builder clearName() { * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * 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. @@ -766,7 +786,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the inputConfig field is set. */ @@ -780,7 +802,9 @@ public boolean hasInputConfig() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The inputConfig. */ @@ -800,7 +824,9 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .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) { @@ -822,7 +848,9 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.datalabeling.v1beta1.InputConfig.Builder builderForValue) { @@ -842,7 +870,9 @@ public Builder setInputConfig( * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .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) { @@ -868,7 +898,9 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -888,7 +920,9 @@ public Builder clearInputConfig() { * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigBuilder() { @@ -902,7 +936,9 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigB * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { @@ -920,7 +956,9 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.InputConfig, diff --git a/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 index 5316e600..4a4ae040 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ImportDataRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,9 @@ public interface ImportDataRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -57,7 +61,9 @@ public interface ImportDataRequestOrBuilder * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the inputConfig field is set. */ @@ -69,7 +75,9 @@ public interface ImportDataRequestOrBuilder * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The inputConfig. */ @@ -81,7 +89,9 @@ public interface ImportDataRequestOrBuilder * Required. Specify the input source of the data. * * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); diff --git a/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 index 66414e5a..4fa4a19e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -382,6 +382,13 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu 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. @@ -390,6 +397,13 @@ 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. @@ -400,7 +414,16 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() } return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance(); } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if (sourceCase_ == 5) { @@ -449,9 +472,9 @@ public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { * * *
-   * Optional. If input contains annotation, user needs to specify the
-   * type and metadata of the annotation when creating it as an annotated
-   * dataset.
+   * Optional. The type of annotation to be performed on this data. You must
+   * specify this field if you are using this InputConfig in an
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -465,9 +488,9 @@ public int getAnnotationTypeValue() { * * *
-   * Optional. If input contains annotation, user needs to specify the
-   * type and metadata of the annotation when creating it as an annotated
-   * dataset.
+   * Optional. The type of annotation to be performed on this data. You must
+   * specify this field if you are using this InputConfig in an
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -489,9 +512,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; @@ -506,9 +529,9 @@ public boolean hasClassificationMetadata() { * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; @@ -525,9 +548,9 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassific * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; @@ -1471,6 +1494,13 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu 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. @@ -1479,6 +1509,13 @@ 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. @@ -1496,7 +1533,16 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public Builder setBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { if (value == null) { @@ -1510,7 +1556,16 @@ public Builder setBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQueryS sourceCase_ = 5; return this; } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public Builder setBigquerySource( com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder builderForValue) { if (bigquerySourceBuilder_ == null) { @@ -1522,7 +1577,16 @@ public Builder setBigquerySource( sourceCase_ = 5; return this; } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuerySource value) { if (bigquerySourceBuilder_ == null) { if (sourceCase_ == 5 @@ -1546,7 +1610,16 @@ public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuer sourceCase_ = 5; return this; } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public Builder clearBigquerySource() { if (bigquerySourceBuilder_ == null) { if (sourceCase_ == 5) { @@ -1563,11 +1636,29 @@ public Builder clearBigquerySource() { } return this; } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigquerySourceBuilder() { return getBigquerySourceFieldBuilder().getBuilder(); } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { if ((sourceCase_ == 5) && (bigquerySourceBuilder_ != null)) { @@ -1579,7 +1670,16 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, @@ -1698,9 +1798,9 @@ public Builder clearDataType() { * * *
-     * Optional. If input contains annotation, user needs to specify the
-     * type and metadata of the annotation when creating it as an annotated
-     * dataset.
+     * Optional. The type of annotation to be performed on this data. You must
+     * specify this field if you are using this InputConfig in an
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -1714,9 +1814,9 @@ public int getAnnotationTypeValue() { * * *
-     * Optional. If input contains annotation, user needs to specify the
-     * type and metadata of the annotation when creating it as an annotated
-     * dataset.
+     * Optional. The type of annotation to be performed on this data. You must
+     * specify this field if you are using this InputConfig in an
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -1733,9 +1833,9 @@ public Builder setAnnotationTypeValue(int value) { * * *
-     * Optional. If input contains annotation, user needs to specify the
-     * type and metadata of the annotation when creating it as an annotated
-     * dataset.
+     * Optional. The type of annotation to be performed on this data. You must
+     * specify this field if you are using this InputConfig in an
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -1754,9 +1854,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() * * *
-     * Optional. If input contains annotation, user needs to specify the
-     * type and metadata of the annotation when creating it as an annotated
-     * dataset.
+     * Optional. The type of annotation to be performed on this data. You must
+     * specify this field if you are using this InputConfig in an
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -1777,9 +1877,9 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio * * *
-     * Optional. If input contains annotation, user needs to specify the
-     * type and metadata of the annotation when creating it as an annotated
-     * dataset.
+     * Optional. The type of annotation to be performed on this data. You must
+     * specify this field if you are using this InputConfig in an
+     * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -1803,9 +1903,9 @@ public Builder clearAnnotationType() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1820,9 +1920,9 @@ public boolean hasClassificationMetadata() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1844,9 +1944,9 @@ public boolean hasClassificationMetadata() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1870,9 +1970,9 @@ public Builder setClassificationMetadata( * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1893,9 +1993,9 @@ public Builder setClassificationMetadata( * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1924,9 +2024,9 @@ public Builder mergeClassificationMetadata( * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1947,9 +2047,9 @@ public Builder clearClassificationMetadata() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1965,9 +2065,9 @@ public Builder clearClassificationMetadata() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; @@ -1987,9 +2087,9 @@ public Builder clearClassificationMetadata() { * * *
-     * Optional. Metadata about annotations in the input. Each annotation type may
-     * have different metadata.
-     * Metadata for classification problem.
+     * 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; diff --git a/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 index b48519bf..d0d860ff 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,18 +94,41 @@ 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(); - /** .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 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; + */ com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); /** @@ -137,9 +160,9 @@ public interface InputConfigOrBuilder * * *
-   * Optional. If input contains annotation, user needs to specify the
-   * type and metadata of the annotation when creating it as an annotated
-   * dataset.
+   * Optional. The type of annotation to be performed on this data. You must
+   * specify this field if you are using this InputConfig in an
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -151,9 +174,9 @@ public interface InputConfigOrBuilder * * *
-   * Optional. If input contains annotation, user needs to specify the
-   * type and metadata of the annotation when creating it as an annotated
-   * dataset.
+   * Optional. The type of annotation to be performed on this data. You must
+   * specify this field if you are using this InputConfig in an
+   * [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; @@ -166,9 +189,9 @@ public interface InputConfigOrBuilder * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; @@ -181,9 +204,9 @@ public interface InputConfigOrBuilder * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; @@ -196,9 +219,9 @@ public interface InputConfigOrBuilder * * *
-   * Optional. Metadata about annotations in the input. Each annotation type may
-   * have different metadata.
-   * Metadata for classification problem.
+   * 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; diff --git a/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 index afd374e9..d1ec64e8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,11 +23,7 @@ * *
  * Instruction of how to perform the labeling task for human operators.
- * Currently two types of instruction are supported - CSV file and PDF.
- * One of the two types instruction must be provided.
- * CSV file is only supported for image classification task. Instructions for
- * other task should be provided as PDF.
- * For image classification, CSV and PDF can be provided at the same time.
+ * Currently only PDF instruction is supported.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction} @@ -490,17 +486,20 @@ public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return Whether the csvInstruction field is set. */ + @java.lang.Deprecated public boolean hasCsvInstruction() { return csvInstruction_ != null; } @@ -508,17 +507,20 @@ public boolean hasCsvInstruction() { * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return The csvInstruction. */ + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { return csvInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() @@ -528,15 +530,18 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { return getCsvInstruction(); @@ -548,7 +553,6 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
@@ -564,7 +568,6 @@ public boolean hasPdfInstruction() { * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
@@ -582,7 +585,6 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
@@ -924,11 +926,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Instruction of how to perform the labeling task for human operators.
-   * Currently two types of instruction are supported - CSV file and PDF.
-   * One of the two types instruction must be provided.
-   * CSV file is only supported for image classification task. Instructions for
-   * other task should be provided as PDF.
-   * For image classification, CSV and PDF can be provided at the same time.
+   * Currently only PDF instruction is supported.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction} @@ -1971,17 +1969,20 @@ public Builder clearDataType() { * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return Whether the csvInstruction field is set. */ + @java.lang.Deprecated public boolean hasCsvInstruction() { return csvInstructionBuilder_ != null || csvInstruction_ != null; } @@ -1989,17 +1990,20 @@ public boolean hasCsvInstruction() { * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return The csvInstruction. */ + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { if (csvInstructionBuilder_ == null) { return csvInstruction_ == null @@ -2013,15 +2017,18 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (value == null) { @@ -2039,15 +2046,18 @@ public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstru * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setCsvInstruction( com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder builderForValue) { if (csvInstructionBuilder_ == null) { @@ -2063,15 +2073,18 @@ public Builder setCsvInstruction( * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (csvInstruction_ != null) { @@ -2093,15 +2106,18 @@ public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInst * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearCsvInstruction() { if (csvInstructionBuilder_ == null) { csvInstruction_ = null; @@ -2117,15 +2133,18 @@ public Builder clearCsvInstruction() { * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstructionBuilder() { onChanged(); @@ -2135,15 +2154,18 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { if (csvInstructionBuilder_ != null) { @@ -2158,14 +2180,16 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru * * *
-     * One of CSV or PDF instruction is required.
+     * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
      * The CSV file should have exact two columns, in the following format:
      * * The first column is labeled data, such as an image reference, text.
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.CsvInstruction, @@ -2194,7 +2218,6 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2210,7 +2233,6 @@ public boolean hasPdfInstruction() { * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2232,7 +2254,6 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2256,7 +2277,6 @@ public Builder setPdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInstru * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2278,7 +2298,6 @@ public Builder setPdfInstruction( * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2306,7 +2325,6 @@ public Builder mergePdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInst * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2328,7 +2346,6 @@ public Builder clearPdfInstruction() { * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2344,7 +2361,6 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstru * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
@@ -2365,7 +2381,6 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstru * * *
-     * One of CSV or PDF instruction is required.
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
diff --git a/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 index f01efd68..00020ce6 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 830eb6d9..afcca5b8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -201,54 +201,62 @@ public interface InstructionOrBuilder * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return Whether the csvInstruction field is set. */ + @java.lang.Deprecated boolean hasCsvInstruction(); /** * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * * * @return The csvInstruction. */ + @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction(); /** * * *
-   * One of CSV or PDF instruction is required.
+   * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
    * The CSV file should have exact two columns, in the following format:
    * * The first column is labeled data, such as an image reference, text.
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder(); /** * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
@@ -262,7 +270,6 @@ public interface InstructionOrBuilder * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
@@ -276,7 +283,6 @@ public interface InstructionOrBuilder * * *
-   * One of CSV or PDF instruction is required.
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
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 index c7486d91..00922945 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,31 +50,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n3google/cloud/datalabeling/v1beta1/inst" + "ruction.proto\022!google.cloud.datalabeling" - + ".v1beta1\032\034google/api/annotations.proto\032/" - + "google/cloud/datalabeling/v1beta1/datase" - + "t.proto\032\037google/protobuf/timestamp.proto" - + "\"\234\003\n\013Instruction\022\014\n\004name\030\001 \001(\t\022\024\n\014displa" - + "y_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013cre" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013update_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\022>\n\tdata_type\030\006 \001(\0162+.google." - + "cloud.datalabeling.v1beta1.DataType\022J\n\017c" - + "sv_instruction\030\007 \001(\01321.google.cloud.data" - + "labeling.v1beta1.CsvInstruction\022J\n\017pdf_i" - + "nstruction\030\t \001(\01321.google.cloud.datalabe" - + "ling.v1beta1.PdfInstruction\022\032\n\022blocking_" - + "resources\030\n \003(\t\"&\n\016CsvInstruction\022\024\n\014gcs" - + "_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n\014gcs" - + "_file_uri\030\001 \001(\tBx\n%com.google.cloud.data" - + "labeling.v1beta1P\001ZMgoogle.golang.org/ge" - + "nproto/googleapis/cloud/datalabeling/v1b" - + "eta1;datalabelingb\006proto3" + + ".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(\tBx\n%com.google.cloud." + + "datalabeling.v1beta1P\001ZMgoogle.golang.or" + + "g/genproto/googleapis/cloud/datalabeling" + + "/v1beta1;datalabelingb\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(), }); @@ -110,7 +114,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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(); } diff --git a/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 index 167c0cab..cf9188d5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index cc524918..43a93c15 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index f397d433..12d60af1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index aca73928..85b30265 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 6d9fff14..9093677c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 299bb532..f9950212 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a200227f..87b19f0b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 5e2ebfd6..33ff967a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 56b0eca4..774da2a3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 9f6603ab..04fbfcd0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3d5149b1..7ab2aea1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -744,7 +744,9 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -767,7 +769,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -792,7 +796,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -806,7 +812,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -822,7 +830,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -838,7 +848,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -852,7 +864,9 @@ public int getFeatureValue() { * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -2322,7 +2336,9 @@ public Builder clearSegmentationConfig() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -2345,7 +2361,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -2368,7 +2386,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -2390,7 +2410,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2408,7 +2430,9 @@ public Builder clearParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * 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. @@ -2437,7 +2461,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -2451,7 +2477,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -2471,7 +2499,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -2494,7 +2524,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2514,7 +2546,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -2541,7 +2575,9 @@ public Builder mergeBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2561,7 +2597,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { @@ -2576,7 +2614,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -2595,7 +2635,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, @@ -2622,7 +2664,9 @@ public Builder clearBasicConfig() { * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -2636,7 +2680,9 @@ public int getFeatureValue() { * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .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. @@ -2653,7 +2699,9 @@ public Builder setFeatureValue(int value) { * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -2672,7 +2720,9 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeatur * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The feature to set. * @return This builder for chaining. @@ -2694,7 +2744,9 @@ public Builder setFeature( * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ diff --git a/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 index 26c4f4aa..c72840d5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -204,7 +204,9 @@ public interface LabelImageRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -217,7 +219,9 @@ public interface LabelImageRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -230,7 +234,9 @@ public interface LabelImageRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -242,7 +248,9 @@ public interface LabelImageRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -254,7 +262,9 @@ public interface LabelImageRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); @@ -265,7 +275,9 @@ public interface LabelImageRequestOrBuilder * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -277,7 +289,9 @@ public interface LabelImageRequestOrBuilder * Required. The type of image labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ diff --git a/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 index 4bcf3553..3cf196e8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ac0fd917..36f6569e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index b87342ca..c5b77719 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ * *
  * Metadata of a labeling operation, such as LabelImage or LabelVideo.
- * Next tag: 18
+ * Next tag: 20
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata} @@ -1812,7 +1812,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Metadata of a labeling operation, such as LabelImage or LabelVideo.
-   * Next tag: 18
+   * Next tag: 20
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata} diff --git a/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 index c565e258..f4a46dad 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 2026c08a..c4e3b377 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index dc99ab33..f38d8102 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index f7facec3..e742dfc0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 84548943..60c58f28 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 60e05738..2dbe2c54 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a10ac459..b0693be0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 20f1d4dc..e436472b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -502,7 +502,9 @@ public boolean hasTextEntityExtractionConfig() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -525,7 +527,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -550,7 +554,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -564,7 +570,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -580,7 +588,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -596,7 +606,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -610,7 +622,9 @@ public int getFeatureValue() { * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -1593,7 +1607,9 @@ public Builder clearTextEntityExtractionConfig() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -1616,7 +1632,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -1639,7 +1657,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -1661,7 +1681,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1679,7 +1701,9 @@ public Builder clearParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * 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. @@ -1708,7 +1732,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -1722,7 +1748,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -1742,7 +1770,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -1765,7 +1795,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -1785,7 +1817,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -1812,7 +1846,9 @@ public Builder mergeBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -1832,7 +1868,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { @@ -1847,7 +1885,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -1866,7 +1906,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, @@ -1893,7 +1935,9 @@ public Builder clearBasicConfig() { * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -1907,7 +1951,9 @@ public int getFeatureValue() { * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .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. @@ -1924,7 +1970,9 @@ public Builder setFeatureValue(int value) { * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -1943,7 +1991,9 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The feature to set. * @return This builder for chaining. @@ -1965,7 +2015,9 @@ public Builder setFeature( * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ diff --git a/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 index d3b1c9f8..846b0685 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -127,7 +127,9 @@ public interface LabelTextRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -140,7 +142,9 @@ public interface LabelTextRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -153,7 +157,9 @@ public interface LabelTextRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -165,7 +171,9 @@ public interface LabelTextRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -177,7 +185,9 @@ public interface LabelTextRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); @@ -188,7 +198,9 @@ public interface LabelTextRequestOrBuilder * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -200,7 +212,9 @@ public interface LabelTextRequestOrBuilder * Required. The type of text labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ diff --git a/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 index 3deca863..aae3ce01 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ecdc8813..8f5e3636 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a3804d6f..17d8fb34 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 9e88f7b9..82b4e79c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 16e98fa2..0a33e054 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 098f2fdb..451fda92 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 8d85dc4f..07b09499 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 30459907..ce5dc4ff 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 2197d55f..b81f1424 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -697,7 +697,9 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -720,7 +722,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -745,7 +749,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -759,7 +765,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -775,7 +783,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -791,7 +801,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -805,7 +817,9 @@ public int getFeatureValue() { * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -2293,7 +2307,9 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -2316,7 +2332,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -2339,7 +2357,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -2361,7 +2381,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2379,7 +2401,9 @@ public Builder clearParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * 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. @@ -2408,7 +2432,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -2422,7 +2448,9 @@ public boolean hasBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -2442,7 +2470,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -2465,7 +2495,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2485,7 +2517,9 @@ public Builder setBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { @@ -2512,7 +2546,9 @@ public Builder mergeBasicConfig( * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2532,7 +2568,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { @@ -2547,7 +2585,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { @@ -2566,7 +2606,9 @@ public Builder clearBasicConfig() { * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, @@ -2593,7 +2635,9 @@ public Builder clearBasicConfig() { * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -2607,7 +2651,9 @@ public int getFeatureValue() { * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .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. @@ -2624,7 +2670,9 @@ public Builder setFeatureValue(int value) { * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ @@ -2643,7 +2691,9 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeatur * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @param value The feature to set. * @return This builder for chaining. @@ -2665,7 +2715,9 @@ public Builder setFeature( * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ diff --git a/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 index d6e1e0be..459fafca 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -210,7 +210,9 @@ public interface LabelVideoRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -223,7 +225,9 @@ public interface LabelVideoRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -236,7 +240,9 @@ public interface LabelVideoRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the basicConfig field is set. */ @@ -248,7 +254,9 @@ public interface LabelVideoRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The basicConfig. */ @@ -260,7 +268,9 @@ public interface LabelVideoRequestOrBuilder * Required. Basic human annotation config. * * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); @@ -271,7 +281,9 @@ public interface LabelVideoRequestOrBuilder * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The enum numeric value on the wire for feature. */ @@ -283,7 +295,9 @@ public interface LabelVideoRequestOrBuilder * Required. The type of video labeling task. * * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The feature. */ diff --git a/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 index b6d02dcf..4f26eb0e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -165,7 +167,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -212,7 +216,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -238,7 +242,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -254,12 +258,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-   * first page if empty.
+   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotatedDatasets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -280,12 +284,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-   * first page if empty.
+   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotatedDatasets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -684,7 +688,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -707,7 +713,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -730,7 +738,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -752,7 +762,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -770,7 +782,9 @@ public Builder clearParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * 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. @@ -794,7 +808,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -816,7 +830,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -838,7 +852,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -859,7 +873,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -876,7 +890,7 @@ public Builder clearFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -901,7 +915,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -916,7 +930,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -935,7 +949,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -953,12 +967,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-     * first page if empty.
+     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotatedDatasets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -979,12 +993,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-     * first page if empty.
+     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotatedDatasets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1005,12 +1019,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-     * first page if empty.
+     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotatedDatasets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1030,12 +1044,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-     * first page if empty.
+     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotatedDatasets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1051,12 +1065,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-     * first page if empty.
+     * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotatedDatasets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 8d4d9f62..dbe7faa5 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ListAnnotatedDatasetsRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListAnnotatedDatasetsRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,7 @@ public interface ListAnnotatedDatasetsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -69,7 +73,7 @@ public interface ListAnnotatedDatasetsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -83,7 +87,7 @@ public interface ListAnnotatedDatasetsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -95,12 +99,12 @@ public interface ListAnnotatedDatasetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-   * first page if empty.
+   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotatedDatasets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -111,12 +115,12 @@ public interface ListAnnotatedDatasetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return
-   * first page if empty.
+   * [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotatedDatasets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 13191a54..e21c3833 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index cd37db93..7618200e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index c4952c40..65526ae3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -165,7 +167,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -212,7 +216,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -238,7 +242,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -254,12 +258,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-   * first page if empty.
+   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotationSpecSets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -280,12 +284,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-   * first page if empty.
+   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotationSpecSets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -684,7 +688,9 @@ public Builder mergeFrom( * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -707,7 +713,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -730,7 +738,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -752,7 +762,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -770,7 +782,9 @@ public Builder clearParent() { * projects/{project_id} * * - * string parent = 1; + * + * 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. @@ -794,7 +808,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -816,7 +830,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -838,7 +852,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -859,7 +873,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -876,7 +890,7 @@ public Builder clearFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -901,7 +915,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -916,7 +930,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -935,7 +949,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -953,12 +967,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-     * first page if empty.
+     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotationSpecSets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -979,12 +993,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-     * first page if empty.
+     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotationSpecSets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1005,12 +1019,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-     * first page if empty.
+     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotationSpecSets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1030,12 +1044,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-     * first page if empty.
+     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotationSpecSets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1051,12 +1065,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-     * first page if empty.
+     * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListAnnotationSpecSets] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 7cc86421..c7020472 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ListAnnotationSpecSetsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListAnnotationSpecSetsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,7 @@ public interface ListAnnotationSpecSetsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -69,7 +73,7 @@ public interface ListAnnotationSpecSetsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -83,7 +87,7 @@ public interface ListAnnotationSpecSetsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -95,12 +99,12 @@ public interface ListAnnotationSpecSetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-   * first page if empty.
+   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotationSpecSets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -111,12 +115,12 @@ public interface ListAnnotationSpecSetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return
-   * first page if empty.
+   * [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListAnnotationSpecSets] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 07bfbd4f..351fbbe0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 15f25de4..ac656eca 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 08e365ed..4c199741 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -165,7 +167,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -212,7 +216,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -238,7 +242,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -254,12 +258,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDataItems] call. Return first page
-   * if empty.
+   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDataItems] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -280,12 +284,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDataItems] call. Return first page
-   * if empty.
+   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDataItems] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -676,7 +680,9 @@ public Builder mergeFrom( * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -699,7 +705,9 @@ public java.lang.String getParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -722,7 +730,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -744,7 +754,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -762,7 +774,9 @@ public Builder clearParent() { * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * 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. @@ -786,7 +800,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -808,7 +822,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -830,7 +844,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -851,7 +865,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -868,7 +882,7 @@ public Builder clearFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -893,7 +907,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -908,7 +922,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -927,7 +941,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -945,12 +959,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDataItems] call. Return first page
-     * if empty.
+     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDataItems] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -971,12 +985,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDataItems] call. Return first page
-     * if empty.
+     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDataItems] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -997,12 +1011,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDataItems] call. Return first page
-     * if empty.
+     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDataItems] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1022,12 +1036,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDataItems] call. Return first page
-     * if empty.
+     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDataItems] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1043,12 +1057,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDataItems] call. Return first page
-     * if empty.
+     * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDataItems] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index c5ccb229..14741e6c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ListDataItemsRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListDataItemsRequestOrBuilder * projects/{project_id}/datasets/{dataset_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,7 @@ public interface ListDataItemsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -69,7 +73,7 @@ public interface ListDataItemsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -83,7 +87,7 @@ public interface ListDataItemsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -95,12 +99,12 @@ public interface ListDataItemsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDataItems] call. Return first page
-   * if empty.
+   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDataItems] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -111,12 +115,12 @@ public interface ListDataItemsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDataItems] call. Return first page
-   * if empty.
+   * [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDataItems] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 1090d5e6..a205eab3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1b7c190a..75589d88 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d92a8e12..4f84880c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -165,7 +167,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -212,7 +216,7 @@ public java.lang.String getFilter() { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -238,7 +242,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -254,12 +258,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-   * page if empty.
+   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDatasets] call.
+   * Returns the first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -280,12 +284,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-   * page if empty.
+   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDatasets] call.
+   * Returns the first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -676,7 +680,9 @@ public Builder mergeFrom( * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -699,7 +705,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -722,7 +730,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -744,7 +754,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -762,7 +774,9 @@ public Builder clearParent() { * projects/{project_id} * * - * string parent = 1; + * + * 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. @@ -786,7 +800,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -808,7 +822,7 @@ public java.lang.String getFilter() { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -830,7 +844,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -851,7 +865,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -868,7 +882,7 @@ public Builder clearFilter() { * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -893,7 +907,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -908,7 +922,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -927,7 +941,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -945,12 +959,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-     * page if empty.
+     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDatasets] call.
+     * Returns the first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -971,12 +985,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-     * page if empty.
+     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDatasets] call.
+     * Returns the first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -997,12 +1011,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-     * page if empty.
+     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDatasets] call.
+     * Returns the first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1022,12 +1036,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-     * page if empty.
+     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDatasets] call.
+     * Returns the first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1043,12 +1057,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-     * page if empty.
+     * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListDatasets] call.
+     * Returns the first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 9faec1da..43f5860d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ListDatasetsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListDatasetsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,7 @@ public interface ListDatasetsRequestOrBuilder * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -69,7 +73,7 @@ public interface ListDatasetsRequestOrBuilder * Optional. Filter on dataset is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -83,7 +87,7 @@ public interface ListDatasetsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -95,12 +99,12 @@ public interface ListDatasetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-   * page if empty.
+   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDatasets] call.
+   * Returns the first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -111,12 +115,12 @@ public interface ListDatasetsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListDatasets] call. Returns the first
-   * page if empty.
+   * [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListDatasets] call.
+   * Returns the first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index cb322cbc..93662b84 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 15229d31..63f60058 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0097fca0..e8e61a57 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,11 +138,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Evaluation resource parent. Format:
-   * "projects/{project_id}"
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -161,11 +163,13 @@ public java.lang.String getParent() { * * *
-   * Required. Evaluation resource parent. Format:
-   * "projects/{project_id}"
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -187,12 +191,17 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Only support filter by model id and job state. Format:
-   * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-   * {EvaluationJob::State}"
+   * Optional. You can filter the jobs to list by model_id (also known as
+   * model_name, as described in
+   * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+   * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+   * by both criteria, use the `AND` operator or the `OR` operator. For example,
+   * you can use the following string for your filter:
+   * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -211,12 +220,17 @@ public java.lang.String getFilter() { * * *
-   * Optional. Only support filter by model id and job state. Format:
-   * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-   * {EvaluationJob::State}"
+   * Optional. You can filter the jobs to list by model_id (also known as
+   * model_name, as described in
+   * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+   * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+   * by both criteria, use the `AND` operator or the `OR` operator. For example,
+   * you can use the following string for your filter:
+   * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -242,7 +256,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -257,13 +271,13 @@ public int getPageSize() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [ListEvaluationJobs.next_page_token][] of the previous
-   * [DataLabelingService.ListEvaluationJobs] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+   * to the previous request. The request returns the first page if this is
+   * empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -283,13 +297,13 @@ public java.lang.String getPageToken() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [ListEvaluationJobs.next_page_token][] of the previous
-   * [DataLabelingService.ListEvaluationJobs] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+   * to the previous request. The request returns the first page if this is
+   * empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -680,11 +694,13 @@ public Builder mergeFrom( * * *
-     * Required. Evaluation resource parent. Format:
-     * "projects/{project_id}"
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -703,11 +719,13 @@ public java.lang.String getParent() { * * *
-     * Required. Evaluation resource parent. Format:
-     * "projects/{project_id}"
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -726,11 +744,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Evaluation resource parent. Format:
-     * "projects/{project_id}"
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -748,11 +768,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Evaluation resource parent. Format:
-     * "projects/{project_id}"
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -766,11 +788,13 @@ public Builder clearParent() { * * *
-     * Required. Evaluation resource parent. Format:
-     * "projects/{project_id}"
+     * Required. Evaluation job resource parent. Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * 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. @@ -791,12 +815,17 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Only support filter by model id and job state. Format:
-     * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-     * {EvaluationJob::State}"
+     * Optional. You can filter the jobs to list by model_id (also known as
+     * model_name, as described in
+     * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+     * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+     * by both criteria, use the `AND` operator or the `OR` operator. For example,
+     * you can use the following string for your filter:
+     * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -815,12 +844,17 @@ public java.lang.String getFilter() { * * *
-     * Optional. Only support filter by model id and job state. Format:
-     * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-     * {EvaluationJob::State}"
+     * Optional. You can filter the jobs to list by model_id (also known as
+     * model_name, as described in
+     * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+     * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+     * by both criteria, use the `AND` operator or the `OR` operator. For example,
+     * you can use the following string for your filter:
+     * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -839,12 +873,17 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional. Only support filter by model id and job state. Format:
-     * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-     * {EvaluationJob::State}"
+     * Optional. You can filter the jobs to list by model_id (also known as
+     * model_name, as described in
+     * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+     * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+     * by both criteria, use the `AND` operator or the `OR` operator. For example,
+     * you can use the following string for your filter:
+     * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -862,12 +901,17 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional. Only support filter by model id and job state. Format:
-     * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-     * {EvaluationJob::State}"
+     * Optional. You can filter the jobs to list by model_id (also known as
+     * model_name, as described in
+     * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+     * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+     * by both criteria, use the `AND` operator or the `OR` operator. For example,
+     * you can use the following string for your filter:
+     * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -881,12 +925,17 @@ public Builder clearFilter() { * * *
-     * Optional. Only support filter by model id and job state. Format:
-     * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-     * {EvaluationJob::State}"
+     * Optional. You can filter the jobs to list by model_id (also known as
+     * model_name, as described in
+     * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+     * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+     * by both criteria, use the `AND` operator or the `OR` operator. For example,
+     * you can use the following string for your filter:
+     * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -911,7 +960,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -926,7 +975,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -945,7 +994,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -962,13 +1011,13 @@ public Builder clearPageSize() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [ListEvaluationJobs.next_page_token][] of the previous
-     * [DataLabelingService.ListEvaluationJobs] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+     * to the previous request. The request returns the first page if this is
+     * empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -988,13 +1037,13 @@ public java.lang.String getPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [ListEvaluationJobs.next_page_token][] of the previous
-     * [DataLabelingService.ListEvaluationJobs] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+     * to the previous request. The request returns the first page if this is
+     * empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1014,13 +1063,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [ListEvaluationJobs.next_page_token][] of the previous
-     * [DataLabelingService.ListEvaluationJobs] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+     * to the previous request. The request returns the first page if this is
+     * empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1039,13 +1088,13 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [ListEvaluationJobs.next_page_token][] of the previous
-     * [DataLabelingService.ListEvaluationJobs] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+     * to the previous request. The request returns the first page if this is
+     * empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1060,13 +1109,13 @@ public Builder clearPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [ListEvaluationJobs.next_page_token][] of the previous
-     * [DataLabelingService.ListEvaluationJobs] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+     * to the previous request. The request returns the first page if this is
+     * empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 57b1a7b4..ef055dd8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,13 @@ public interface ListEvaluationJobsRequestOrBuilder * * *
-   * Required. Evaluation resource parent. Format:
-   * "projects/{project_id}"
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -40,11 +42,13 @@ public interface ListEvaluationJobsRequestOrBuilder * * *
-   * Required. Evaluation resource parent. Format:
-   * "projects/{project_id}"
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -54,12 +58,17 @@ public interface ListEvaluationJobsRequestOrBuilder * * *
-   * Optional. Only support filter by model id and job state. Format:
-   * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-   * {EvaluationJob::State}"
+   * Optional. You can filter the jobs to list by model_id (also known as
+   * model_name, as described in
+   * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+   * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+   * by both criteria, use the `AND` operator or the `OR` operator. For example,
+   * you can use the following string for your filter:
+   * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -68,12 +77,17 @@ public interface ListEvaluationJobsRequestOrBuilder * * *
-   * Optional. Only support filter by model id and job state. Format:
-   * "evaluation_job.model_id = {model_id} AND evaluation_job.state =
-   * {EvaluationJob::State}"
+   * Optional. You can filter the jobs to list by model_id (also known as
+   * model_name, as described in
+   * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by
+   * evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter
+   * by both criteria, use the `AND` operator or the `OR` operator. For example,
+   * you can use the following string for your filter:
+   * "evaluation<span>_</span>job.model_id = <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.state = <var>{evaluation_job_state}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -87,7 +101,7 @@ public interface ListEvaluationJobsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -98,13 +112,13 @@ public interface ListEvaluationJobsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [ListEvaluationJobs.next_page_token][] of the previous
-   * [DataLabelingService.ListEvaluationJobs] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+   * to the previous request. The request returns the first page if this is
+   * empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -114,13 +128,13 @@ public interface ListEvaluationJobsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [ListEvaluationJobs.next_page_token][] of the previous
-   * [DataLabelingService.ListEvaluationJobs] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response
+   * to the previous request. The request returns the first page if this is
+   * empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 334306da..b38127b2 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index dda4dfe4..5a9abaf7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0f5c323a..67a695e9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -141,7 +141,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -163,7 +165,9 @@ public java.lang.String getParent() { * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -191,7 +195,7 @@ public com.google.protobuf.ByteString getParentBytes() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -216,7 +220,7 @@ public java.lang.String getFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -242,7 +246,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -258,12 +262,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-   * of the previous [DataLabelingService.ListExamples] call. Return first page
-   * if empty.
+   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+   * [DataLabelingService.ListExamples] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -284,12 +288,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-   * of the previous [DataLabelingService.ListExamples] call. Return first page
-   * if empty.
+   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+   * [DataLabelingService.ListExamples] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -679,7 +683,9 @@ public Builder mergeFrom( * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -701,7 +707,9 @@ public java.lang.String getParent() { * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -723,7 +731,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -744,7 +754,9 @@ public Builder setParent(java.lang.String value) { * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -761,7 +773,9 @@ public Builder clearParent() { * Required. Example resource parent. * * - * string parent = 1; + * + * 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. @@ -788,7 +802,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -813,7 +827,7 @@ public java.lang.String getFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -838,7 +852,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -862,7 +876,7 @@ public Builder setFilter(java.lang.String value) { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -882,7 +896,7 @@ public Builder clearFilter() { * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -907,7 +921,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -922,7 +936,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -941,7 +955,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -959,12 +973,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-     * of the previous [DataLabelingService.ListExamples] call. Return first page
-     * if empty.
+     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+     * [DataLabelingService.ListExamples] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -985,12 +999,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-     * of the previous [DataLabelingService.ListExamples] call. Return first page
-     * if empty.
+     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+     * [DataLabelingService.ListExamples] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1011,12 +1025,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-     * of the previous [DataLabelingService.ListExamples] call. Return first page
-     * if empty.
+     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+     * [DataLabelingService.ListExamples] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1036,12 +1050,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-     * of the previous [DataLabelingService.ListExamples] call. Return first page
-     * if empty.
+     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+     * [DataLabelingService.ListExamples] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1057,12 +1071,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-     * of the previous [DataLabelingService.ListExamples] call. Return first page
-     * if empty.
+     * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+     * [DataLabelingService.ListExamples] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 720fb338..e8046808 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ public interface ListExamplesRequestOrBuilder * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -42,7 +44,9 @@ public interface ListExamplesRequestOrBuilder * Required. Example resource parent. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -58,7 +62,7 @@ public interface ListExamplesRequestOrBuilder * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -73,7 +77,7 @@ public interface ListExamplesRequestOrBuilder * "annotation_spec.display_name = {display_name}" * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -87,7 +91,7 @@ public interface ListExamplesRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -99,12 +103,12 @@ public interface ListExamplesRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-   * of the previous [DataLabelingService.ListExamples] call. Return first page
-   * if empty.
+   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+   * [DataLabelingService.ListExamples] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -115,12 +119,12 @@ public interface ListExamplesRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token]
-   * of the previous [DataLabelingService.ListExamples] call. Return first page
-   * if empty.
+   * [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous
+   * [DataLabelingService.ListExamples] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 33a891d5..fe443071 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index d9b1a458..03023f63 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 27ba0225..e94d6237 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -165,7 +167,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -212,7 +216,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -238,7 +242,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -254,12 +258,12 @@ public int getPageSize() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListInstructions] call. Return first
-   * page if empty.
+   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListInstructions] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -280,12 +284,12 @@ public java.lang.String getPageToken() { *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListInstructions] call. Return first
-   * page if empty.
+   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListInstructions] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -679,7 +683,9 @@ public Builder mergeFrom( * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -702,7 +708,9 @@ public java.lang.String getParent() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -725,7 +733,9 @@ public com.google.protobuf.ByteString getParentBytes() { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -747,7 +757,9 @@ public Builder setParent(java.lang.String value) { * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -765,7 +777,9 @@ public Builder clearParent() { * projects/{project_id} * * - * string parent = 1; + * + * 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. @@ -789,7 +803,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -811,7 +825,7 @@ public java.lang.String getFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -833,7 +847,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -854,7 +868,7 @@ public Builder setFilter(java.lang.String value) { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -871,7 +885,7 @@ public Builder clearFilter() { * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -896,7 +910,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -911,7 +925,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -930,7 +944,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -948,12 +962,12 @@ public Builder clearPageSize() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListInstructions] call. Return first
-     * page if empty.
+     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListInstructions] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -974,12 +988,12 @@ public java.lang.String getPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListInstructions] call. Return first
-     * page if empty.
+     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListInstructions] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1000,12 +1014,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListInstructions] call. Return first
-     * page if empty.
+     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListInstructions] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1025,12 +1039,12 @@ public Builder setPageToken(java.lang.String value) { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListInstructions] call. Return first
-     * page if empty.
+     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListInstructions] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1046,12 +1060,12 @@ public Builder clearPageToken() { *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
-     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-     * of the previous [DataLabelingService.ListInstructions] call. Return first
-     * page if empty.
+     * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+     * [DataLabelingService.ListInstructions] call.
+     * Return first page if empty.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 1bd47e0d..582ee222 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,9 @@ public interface ListInstructionsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListInstructionsRequestOrBuilder * projects/{project_id} * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -57,7 +61,7 @@ public interface ListInstructionsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -69,7 +73,7 @@ public interface ListInstructionsRequestOrBuilder * Optional. Filter is not supported at this moment. * * - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -83,7 +87,7 @@ public interface ListInstructionsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -95,12 +99,12 @@ public interface ListInstructionsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListInstructions] call. Return first
-   * page if empty.
+   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListInstructions] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -111,12 +115,12 @@ public interface ListInstructionsRequestOrBuilder *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
-   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token]
-   * of the previous [DataLabelingService.ListInstructions] call. Return first
-   * page if empty.
+   * [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous
+   * [DataLabelingService.ListInstructions] call.
+   * Return first page if empty.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index 19485917..3ebf9575 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 99d4921c..4ca8be04 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 5b03db44..6732e0a4 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 47afcbf4..70cb2b31 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 17e9d7ed..714b040b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3fd4d37b..8eaef191 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 14e24757..fcfee0e9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 87d110da..52597279 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a2b57707..c796dacd 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -129,7 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -151,7 +151,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -176,7 +176,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Number of frames per second to be extracted from the video. * * - * double extraction_frame_rate = 3; + * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The extractionFrameRate. */ @@ -534,7 +534,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -556,7 +556,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -578,7 +578,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -599,7 +599,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -616,7 +616,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -640,7 +640,7 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * Required. Number of frames per second to be extracted from the video. * * - * double extraction_frame_rate = 3; + * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The extractionFrameRate. */ @@ -654,7 +654,7 @@ public double getExtractionFrameRate() { * Required. Number of frames per second to be extracted from the video. * * - * double extraction_frame_rate = 3; + * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The extractionFrameRate to set. * @return This builder for chaining. @@ -672,7 +672,7 @@ public Builder setExtractionFrameRate(double value) { * Required. Number of frames per second to be extracted from the video. * * - * double extraction_frame_rate = 3; + * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ diff --git a/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 index b81a41c4..3ad3b03c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface ObjectDetectionConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface ObjectDetectionConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -55,7 +55,7 @@ public interface ObjectDetectionConfigOrBuilder * Required. Number of frames per second to be extracted from the video. * * - * double extraction_frame_rate = 3; + * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The extractionFrameRate. */ diff --git a/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 index 47b92f33..095e2daf 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,15 @@ package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ +/** + * + * + *
+ * 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 // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) @@ -320,7 +328,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ + /** + * + * + *
+   * 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 // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) diff --git a/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 index 79ab9c85..7bf3b0c9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index c40c8399..ff41cf9c 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,7 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -142,7 +142,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -485,7 +485,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -507,7 +507,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -529,7 +529,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -550,7 +550,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -567,7 +567,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. diff --git a/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 index 69ffb5d0..9c23d068 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface ObjectTrackingConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface ObjectTrackingConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ diff --git a/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 index 0aaff407..3c4c67d8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a4f2ebda..d84c4a2a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 72dd0f2d..1397220a 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -110,116 +110,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/datalabeling/v1beta1/oper" + "ations.proto\022!google.cloud.datalabeling." - + "v1beta1\032\034google/api/annotations.proto\032/g" - + "oogle/cloud/datalabeling/v1beta1/dataset" - + ".proto\032?google/cloud/datalabeling/v1beta" - + "1/human_annotation_config.proto\032\037google/" - + "protobuf/timestamp.proto\032\027google/rpc/sta" - + "tus.proto\"Y\n\033ImportDataOperationResponse" - + "\022\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024" - + "\n\014import_count\030\003 \001(\005\"\345\001\n\033ExportDataOpera" - + "tionResponse\022\017\n\007dataset\030\001 \001(\t\022\023\n\013total_c" - + "ount\030\002 \001(\005\022\024\n\014export_count\030\003 \001(\005\022B\n\013labe" - + "l_stats\030\004 \001(\0132-.google.cloud.datalabelin" - + "g.v1beta1.LabelStats\022F\n\routput_config\030\005 " - + "\001(\0132/.google.cloud.datalabeling.v1beta1." - + "OutputConfig\"\215\001\n\033ImportDataOperationMeta" - + "data\022\017\n\007dataset\030\001 \001(\t\022,\n\020partial_failure" - + "s\030\002 \003(\0132\022.google.rpc.Status\022/\n\013create_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\"\215\001\n" - + "\033ExportDataOperationMetadata\022\017\n\007dataset\030" - + "\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.google" - + ".rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\"\214\014\n\026LabelOperationM" - + "etadata\022t\n\034image_classification_details\030" - + "\003 \001(\0132L.google.cloud.datalabeling.v1beta" - + "1.LabelImageClassificationOperationMetad" - + "ataH\000\022o\n\032image_bounding_box_details\030\004 \001(" - + "\0132I.google.cloud.datalabeling.v1beta1.La" - + "belImageBoundingBoxOperationMetadataH\000\022q" - + "\n\033image_bounding_poly_details\030\013 \001(\0132J.go" - + "ogle.cloud.datalabeling.v1beta1.LabelIma" - + "geBoundingPolyOperationMetadataH\000\022\200\001\n#im" - + "age_oriented_bounding_box_details\030\016 \001(\0132" - + "Q.google.cloud.datalabeling.v1beta1.Labe" - + "lImageOrientedBoundingBoxOperationMetada" - + "taH\000\022h\n\026image_polyline_details\030\014 \001(\0132F.g" - + "oogle.cloud.datalabeling.v1beta1.LabelIm" - + "agePolylineOperationMetadataH\000\022p\n\032image_" - + "segmentation_details\030\017 \001(\0132J.google.clou" - + "d.datalabeling.v1beta1.LabelImageSegment" - + "ationOperationMetadataH\000\022t\n\034video_classi" - + "fication_details\030\005 \001(\0132L.google.cloud.da" - + "talabeling.v1beta1.LabelVideoClassificat" - + "ionOperationMetadataH\000\022w\n\036video_object_d" - + "etection_details\030\006 \001(\0132M.google.cloud.da" - + "talabeling.v1beta1.LabelVideoObjectDetec" - + "tionOperationMetadataH\000\022u\n\035video_object_" - + "tracking_details\030\007 \001(\0132L.google.cloud.da" - + "talabeling.v1beta1.LabelVideoObjectTrack" - + "ingOperationMetadataH\000\022b\n\023video_event_de" - + "tails\030\010 \001(\0132C.google.cloud.datalabeling." - + "v1beta1.LabelVideoEventOperationMetadata" - + "H\000\022r\n\033text_classification_details\030\t \001(\0132" - + "K.google.cloud.datalabeling.v1beta1.Labe" - + "lTextClassificationOperationMetadataH\000\022w" - + "\n\036text_entity_extraction_details\030\r \001(\0132M" + + "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" - + "TextEntityExtractionOperationMetadataH\000\022" - + "\030\n\020progress_percent\030\001 \001(\005\022,\n\020partial_fai" - + "lures\030\002 \003(\0132\022.google.rpc.Status\022/\n\013creat" - + "e_time\030\020 \001(\0132\032.google.protobuf.Timestamp" - + "B\t\n\007details\"{\n)LabelImageClassificationO" - + "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" - + ".google.cloud.datalabeling.v1beta1.Human" - + "AnnotationConfig\"x\n&LabelImageBoundingBo" - + "xOperationMetadata\022N\n\014basic_config\030\001 \001(\013" - + "28.google.cloud.datalabeling.v1beta1.Hum" - + "anAnnotationConfig\"\200\001\n.LabelImageOriente" - + "dBoundingBoxOperationMetadata\022N\n\014basic_c" - + "onfig\030\001 \001(\01328.google.cloud.datalabeling." - + "v1beta1.HumanAnnotationConfig\"y\n\'LabelIm" - + "ageBoundingPolyOperationMetadata\022N\n\014basi" - + "c_config\030\001 \001(\01328.google.cloud.datalabeli" - + "ng.v1beta1.HumanAnnotationConfig\"u\n#Labe" - + "lImagePolylineOperationMetadata\022N\n\014basic" - + "_config\030\001 \001(\01328.google.cloud.datalabelin" - + "g.v1beta1.HumanAnnotationConfig\"y\n\'Label" - + "ImageSegmentationOperationMetadata\022N\n\014ba" - + "sic_config\030\001 \001(\01328.google.cloud.datalabe" - + "ling.v1beta1.HumanAnnotationConfig\"{\n)La" - + "belVideoClassificationOperationMetadata\022" - + "N\n\014basic_config\030\001 \001(\01328.google.cloud.dat" - + "alabeling.v1beta1.HumanAnnotationConfig\"" - + "|\n*LabelVideoObjectDetectionOperationMet" + + "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\"{\n)LabelVideoObjectTrackingOperati" - + "onMetadata\022N\n\014basic_config\030\001 \001(\01328.googl" - + "e.cloud.datalabeling.v1beta1.HumanAnnota" - + "tionConfig\"r\n LabelVideoEventOperationMe" - + "tadata\022N\n\014basic_config\030\001 \001(\01328.google.cl" - + "oud.datalabeling.v1beta1.HumanAnnotation" - + "Config\"z\n(LabelTextClassificationOperati" - + "onMetadata\022N\n\014basic_config\030\001 \001(\01328.googl" - + "e.cloud.datalabeling.v1beta1.HumanAnnota" - + "tionConfig\"|\n*LabelTextEntityExtractionO" + + "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO" + "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" + ".google.cloud.datalabeling.v1beta1.Human" - + "AnnotationConfig\"\217\001\n\031CreateInstructionMe" - + "tadata\022\023\n\013instruction\030\001 \001(\t\022,\n\020partial_f" - + "ailures\030\002 \003(\0132\022.google.rpc.Status\022/\n\013cre" - + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mpBx\n%com.google.cloud.datalabeling.v1be" - + "ta1P\001ZMgoogle.golang.org/genproto/google" - + "apis/cloud/datalabeling/v1beta1;datalabe" - + "lingb\006proto3" + + "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.TimestampBx\n%com.goo" + + "gle.cloud.datalabeling.v1beta1P\001ZMgoogle" + + ".golang.org/genproto/googleapis/cloud/da" + + "talabeling/v1beta1;datalabelingb\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(), @@ -385,6 +386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "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(); diff --git a/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 index 987bc6e4..6dcaef3e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a52dceef..96eb7690 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ee90f024..64460301 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 42d2bc62..0bab3419 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index e8c39211..55fcd41f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,10 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of the evaluation job that is going to be paused. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -141,10 +143,12 @@ public java.lang.String getName() { * *
    * Required. Name of the evaluation job that is going to be paused. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -489,10 +493,12 @@ public Builder mergeFrom( * *
      * Required. Name of the evaluation job that is going to be paused. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -512,10 +518,12 @@ public java.lang.String getName() { * *
      * Required. Name of the evaluation job that is going to be paused. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -535,10 +543,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Name of the evaluation job that is going to be paused. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -557,10 +567,12 @@ public Builder setName(java.lang.String value) { * *
      * Required. Name of the evaluation job that is going to be paused. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -575,10 +587,12 @@ public Builder clearName() { * *
      * Required. Name of the evaluation job that is going to be paused. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * 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. 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 index 6e3da783..c51b18e4 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,12 @@ public interface PauseEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be paused. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -41,10 +43,12 @@ public interface PauseEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be paused. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 97292695..657cc22f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 316eece1..608f2f77 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 3f6d5b87..f103dc91 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 72343429..5adfc725 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -128,7 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -150,7 +150,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -175,7 +175,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -197,7 +197,7 @@ public java.lang.String getInstructionMessage() { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ @@ -555,7 +555,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -577,7 +577,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -599,7 +599,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -620,7 +620,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -637,7 +637,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -661,7 +661,7 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -683,7 +683,7 @@ public java.lang.String getInstructionMessage() { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ @@ -705,7 +705,7 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The instructionMessage to set. * @return This builder for chaining. @@ -726,7 +726,7 @@ public Builder setInstructionMessage(java.lang.String value) { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder clearInstructionMessage() { * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. diff --git a/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 index 2520acee..e524510b 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface PolylineConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface PolylineConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -55,7 +55,7 @@ public interface PolylineConfigOrBuilder * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The instructionMessage. */ @@ -67,7 +67,7 @@ public interface PolylineConfigOrBuilder * Optional. Instruction message showed on contributors UI. * * - * string instruction_message = 2; + * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for instructionMessage. */ diff --git a/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 index 659a4a0e..77d7771f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1992e54d..d7e64ae7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -151,8 +151,15 @@ public interface ConfidenceMetricsEntryOrBuilder * * *
-     * Threshold used for this entry, for example, IoU threshold for bounding
-     * box problem, or detection threshold for classification.
+     * Threshold used for this entry.
+     * For classification tasks, this is a classification threshold: a
+     * predicted label is categorized as positive or negative (in the context of
+     * this point on the PR curve) based on whether the label's score meets this
+     * threshold.
+     * For image object detection (bounding box) tasks, this is the
+     * [intersection-over-union
+     * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+     * threshold for the context of this point on the PR curve.
      * 
* * float confidence_threshold = 1; @@ -230,10 +237,7 @@ public interface ConfidenceMetricsEntryOrBuilder * * *
-     * 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].
+     * 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; @@ -272,10 +276,7 @@ public interface ConfidenceMetricsEntryOrBuilder * * *
-     * 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].
+     * 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; @@ -416,8 +417,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Threshold used for this entry, for example, IoU threshold for bounding
-     * box problem, or detection threshold for classification.
+     * Threshold used for this entry.
+     * For classification tasks, this is a classification threshold: a
+     * predicted label is categorized as positive or negative (in the context of
+     * this point on the PR curve) based on whether the label's score meets this
+     * threshold.
+     * For image object detection (bounding box) tasks, this is the
+     * [intersection-over-union
+     * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+     * threshold for the context of this point on the PR curve.
      * 
* * float confidence_threshold = 1; @@ -519,10 +527,7 @@ public 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].
+     * 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; @@ -573,10 +578,7 @@ public 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].
+     * 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; @@ -1060,8 +1062,15 @@ public Builder mergeFrom( * * *
-       * Threshold used for this entry, for example, IoU threshold for bounding
-       * box problem, or detection threshold for classification.
+       * Threshold used for this entry.
+       * For classification tasks, this is a classification threshold: a
+       * predicted label is categorized as positive or negative (in the context of
+       * this point on the PR curve) based on whether the label's score meets this
+       * threshold.
+       * For image object detection (bounding box) tasks, this is the
+       * [intersection-over-union
+       * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+       * threshold for the context of this point on the PR curve.
        * 
* * float confidence_threshold = 1; @@ -1075,8 +1084,15 @@ public float getConfidenceThreshold() { * * *
-       * Threshold used for this entry, for example, IoU threshold for bounding
-       * box problem, or detection threshold for classification.
+       * Threshold used for this entry.
+       * For classification tasks, this is a classification threshold: a
+       * predicted label is categorized as positive or negative (in the context of
+       * this point on the PR curve) based on whether the label's score meets this
+       * threshold.
+       * For image object detection (bounding box) tasks, this is the
+       * [intersection-over-union
+       * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+       * threshold for the context of this point on the PR curve.
        * 
* * float confidence_threshold = 1; @@ -1094,8 +1110,15 @@ public Builder setConfidenceThreshold(float value) { * * *
-       * Threshold used for this entry, for example, IoU threshold for bounding
-       * box problem, or detection threshold for classification.
+       * Threshold used for this entry.
+       * For classification tasks, this is a classification threshold: a
+       * predicted label is categorized as positive or negative (in the context of
+       * this point on the PR curve) based on whether the label's score meets this
+       * threshold.
+       * For image object detection (bounding box) tasks, this is the
+       * [intersection-over-union
+       * (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union)
+       * threshold for the context of this point on the PR curve.
        * 
* * float confidence_threshold = 1; @@ -1369,10 +1392,7 @@ public Builder clearPrecisionAt1() { * * *
-       * 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].
+       * 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; @@ -1386,10 +1406,7 @@ public float getF1ScoreAt1() { * * *
-       * 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].
+       * 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; @@ -1407,10 +1424,7 @@ public Builder setF1ScoreAt1(float value) { * * *
-       * 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].
+       * 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; @@ -1531,10 +1545,7 @@ public Builder clearPrecisionAt5() { * * *
-       * 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].
+       * 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; @@ -1548,10 +1559,7 @@ public float getF1ScoreAt5() { * * *
-       * 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].
+       * 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; @@ -1569,10 +1577,7 @@ public Builder setF1ScoreAt5(float value) { * * *
-       * 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].
+       * 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; @@ -1647,7 +1652,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1661,7 +1668,9 @@ public boolean hasAnnotationSpec() { * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1677,7 +1686,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -1693,7 +1704,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-   * Area under precision recall curve.
+   * Area under the precision-recall curve. Not to be confused with area under
+   * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; @@ -1711,7 +1723,8 @@ public float getAreaUnderCurve() { * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -1726,7 +1739,8 @@ public float getAreaUnderCurve() { * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -1742,7 +1756,8 @@ public float getAreaUnderCurve() { * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -1756,7 +1771,8 @@ public int getConfidenceMetricsEntriesCount() { * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -1771,7 +1787,8 @@ public int getConfidenceMetricsEntriesCount() { * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -1789,7 +1806,7 @@ public int getConfidenceMetricsEntriesCount() { * * *
-   * mean average prcision of this curve.
+   * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; @@ -2224,7 +2241,9 @@ public Builder mergeFrom( * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2238,7 +2257,9 @@ public boolean hasAnnotationSpec() { * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2258,7 +2279,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2280,7 +2303,9 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2300,7 +2325,9 @@ public Builder setAnnotationSpec( * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2326,7 +2353,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2346,7 +2375,9 @@ public Builder clearAnnotationSpec() { * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2360,7 +2391,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2379,7 +2412,9 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * PR curve against which annotation spec. Could be empty.
+     * The annotation spec of the label for which the precision-recall curve
+     * calculated. If this field is empty, that means the precision-recall curve
+     * is an aggregate curve for all labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -2406,7 +2441,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * * *
-     * Area under precision recall curve.
+     * Area under the precision-recall curve. Not to be confused with area under
+     * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; @@ -2420,7 +2456,8 @@ public float getAreaUnderCurve() { * * *
-     * Area under precision recall curve.
+     * Area under the precision-recall curve. Not to be confused with area under
+     * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; @@ -2438,7 +2475,8 @@ public Builder setAreaUnderCurve(float value) { * * *
-     * Area under precision recall curve.
+     * Area under the precision-recall curve. Not to be confused with area under
+     * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; @@ -2475,7 +2513,8 @@ private void ensureConfidenceMetricsEntriesIsMutable() { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2494,7 +2533,8 @@ private void ensureConfidenceMetricsEntriesIsMutable() { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2512,7 +2552,8 @@ public int getConfidenceMetricsEntriesCount() { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2531,7 +2572,8 @@ public int getConfidenceMetricsEntriesCount() { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2556,7 +2598,8 @@ public Builder setConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2580,7 +2623,8 @@ public Builder setConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2605,7 +2649,8 @@ public Builder addConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2630,7 +2675,8 @@ public Builder addConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2653,7 +2699,8 @@ public Builder addConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2677,7 +2724,8 @@ public Builder addConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2701,7 +2749,8 @@ public Builder addAllConfidenceMetricsEntries( * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2722,7 +2771,8 @@ public Builder clearConfidenceMetricsEntries() { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2743,7 +2793,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2758,7 +2809,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2777,7 +2829,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2797,7 +2850,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2815,7 +2869,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2834,7 +2889,8 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * entries to draw PR graph.
+     * Entries that make up the precision-recall graph. Each entry is a "point" on
+     * the graph drawn for a different `confidence_threshold`.
      * 
* * @@ -2872,7 +2928,7 @@ public Builder removeConfidenceMetricsEntries(int index) { * * *
-     * mean average prcision of this curve.
+     * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; @@ -2886,7 +2942,7 @@ public float getMeanAveragePrecision() { * * *
-     * mean average prcision of this curve.
+     * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; @@ -2904,7 +2960,7 @@ public Builder setMeanAveragePrecision(float value) { * * *
-     * mean average prcision of this curve.
+     * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; diff --git a/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 index 86685be1..9b27bdcc 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,9 @@ public interface PrCurveOrBuilder * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -39,7 +41,9 @@ public interface PrCurveOrBuilder * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -51,7 +55,9 @@ public interface PrCurveOrBuilder * * *
-   * PR curve against which annotation spec. Could be empty.
+   * The annotation spec of the label for which the precision-recall curve
+   * calculated. If this field is empty, that means the precision-recall curve
+   * is an aggregate curve for all labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; @@ -62,7 +68,8 @@ public interface PrCurveOrBuilder * * *
-   * Area under precision recall curve.
+   * Area under the precision-recall curve. Not to be confused with area under
+   * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; @@ -75,7 +82,8 @@ public interface PrCurveOrBuilder * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -88,7 +96,8 @@ public interface PrCurveOrBuilder * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -101,7 +110,8 @@ com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfiden * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -113,7 +123,8 @@ com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfiden * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -127,7 +138,8 @@ com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfiden * * *
-   * entries to draw PR graph.
+   * Entries that make up the precision-recall graph. Each entry is a "point" on
+   * the graph drawn for a different `confidence_threshold`.
    * 
* * @@ -141,7 +153,7 @@ com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfiden * * *
-   * mean average prcision of this curve.
+   * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; diff --git a/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 index 0d94c680..584feced 100644 --- a/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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ba3fd510..dd1329a1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,10 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -141,10 +143,12 @@ public java.lang.String getName() { * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -489,10 +493,12 @@ public Builder mergeFrom( * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -512,10 +518,12 @@ public java.lang.String getName() { * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -535,10 +543,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -557,10 +567,12 @@ public Builder setName(java.lang.String value) { * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -575,10 +587,12 @@ public Builder clearName() { * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
-     * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+     * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string name = 1; + * + * 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. 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 index f6e4c81e..15aa6677 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,10 +28,12 @@ public interface ResumeEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -41,10 +43,12 @@ public interface ResumeEvaluationJobRequestOrBuilder * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
-   * 'projects/{project_id}/evaluationJobs/{evaluation_job_id}'
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/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 index 80bd6657..6b94dc34 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,11 +138,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Evaluation search parent. Format:
-   * projects/{project_id}
+   * Required. Evaluation search parent (project ID). Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -161,11 +163,13 @@ public java.lang.String getParent() { * * *
-   * Required. Evaluation search parent. Format:
-   * projects/{project_id}
+   * Required. Evaluation search parent (project ID). Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -187,15 +191,37 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. Support filtering by model id, job state, start and end time.
-   * Format:
-   * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-   * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-   * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-   * annotation_spec.display_name = {display_name}"
+   * Optional. To search evaluations, you can filter by the following:
+   * * 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 <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
+   *   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
+   *   threshold for the
+   *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+   *   the evaluation)
+   * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+   * * 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])
+   * To filter by multiple critiera, use the `AND` operator or the `OR`
+   * operator. The following examples shows a string that filters by several
+   * critiera:
+   * "evaluation<span>_</span>job.evaluation_job_id =
+   * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+   * <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_start =
+   * <var>{timestamp_1}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_end =
+   * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+   * <var>{display_name}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -214,15 +240,37 @@ public java.lang.String getFilter() { * * *
-   * Optional. Support filtering by model id, job state, start and end time.
-   * Format:
-   * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-   * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-   * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-   * annotation_spec.display_name = {display_name}"
+   * Optional. To search evaluations, you can filter by the following:
+   * * 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 <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
+   *   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
+   *   threshold for the
+   *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+   *   the evaluation)
+   * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+   * * 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])
+   * To filter by multiple critiera, use the `AND` operator or the `OR`
+   * operator. The following examples shows a string that filters by several
+   * critiera:
+   * "evaluation<span>_</span>job.evaluation_job_id =
+   * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+   * <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_start =
+   * <var>{timestamp_1}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_end =
+   * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+   * <var>{display_name}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -248,7 +296,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -263,13 +311,14 @@ public int getPageSize() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-   * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-   * page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+   * to a previous search request.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -289,13 +338,14 @@ public java.lang.String getPageToken() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-   * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-   * page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+   * to a previous search request.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -685,11 +735,13 @@ public Builder mergeFrom( * * *
-     * Required. Evaluation search parent. Format:
-     * projects/{project_id}
+     * Required. Evaluation search parent (project ID). Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -708,11 +760,13 @@ public java.lang.String getParent() { * * *
-     * Required. Evaluation search parent. Format:
-     * projects/{project_id}
+     * Required. Evaluation search parent (project ID). Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -731,11 +785,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Evaluation search parent. Format:
-     * projects/{project_id}
+     * Required. Evaluation search parent (project ID). Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -753,11 +809,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Evaluation search parent. Format:
-     * projects/{project_id}
+     * Required. Evaluation search parent (project ID). Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -771,11 +829,13 @@ public Builder clearParent() { * * *
-     * Required. Evaluation search parent. Format:
-     * projects/{project_id}
+     * Required. Evaluation search parent (project ID). Format:
+     * "projects/<var>{project_id}</var>"
      * 
* - * string parent = 1; + * + * 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. @@ -796,15 +856,37 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Support filtering by model id, job state, start and end time.
-     * Format:
-     * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-     * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-     * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-     * annotation_spec.display_name = {display_name}"
+     * Optional. To search evaluations, you can filter by the following:
+     * * 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 <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
+     *   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
+     *   threshold for the
+     *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+     *   the evaluation)
+     * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+     * * 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])
+     * To filter by multiple critiera, use the `AND` operator or the `OR`
+     * operator. The following examples shows a string that filters by several
+     * critiera:
+     * "evaluation<span>_</span>job.evaluation_job_id =
+     * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+     * <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_start =
+     * <var>{timestamp_1}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_end =
+     * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+     * <var>{display_name}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -823,15 +905,37 @@ public java.lang.String getFilter() { * * *
-     * Optional. Support filtering by model id, job state, start and end time.
-     * Format:
-     * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-     * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-     * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-     * annotation_spec.display_name = {display_name}"
+     * Optional. To search evaluations, you can filter by the following:
+     * * 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 <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
+     *   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
+     *   threshold for the
+     *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+     *   the evaluation)
+     * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+     * * 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])
+     * To filter by multiple critiera, use the `AND` operator or the `OR`
+     * operator. The following examples shows a string that filters by several
+     * critiera:
+     * "evaluation<span>_</span>job.evaluation_job_id =
+     * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+     * <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_start =
+     * <var>{timestamp_1}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_end =
+     * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+     * <var>{display_name}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -850,15 +954,37 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional. Support filtering by model id, job state, start and end time.
-     * Format:
-     * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-     * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-     * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-     * annotation_spec.display_name = {display_name}"
+     * Optional. To search evaluations, you can filter by the following:
+     * * 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 <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
+     *   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
+     *   threshold for the
+     *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+     *   the evaluation)
+     * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+     * * 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])
+     * To filter by multiple critiera, use the `AND` operator or the `OR`
+     * operator. The following examples shows a string that filters by several
+     * critiera:
+     * "evaluation<span>_</span>job.evaluation_job_id =
+     * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+     * <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_start =
+     * <var>{timestamp_1}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_end =
+     * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+     * <var>{display_name}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -876,15 +1002,37 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional. Support filtering by model id, job state, start and end time.
-     * Format:
-     * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-     * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-     * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-     * annotation_spec.display_name = {display_name}"
+     * Optional. To search evaluations, you can filter by the following:
+     * * 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 <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
+     *   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
+     *   threshold for the
+     *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+     *   the evaluation)
+     * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+     * * 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])
+     * To filter by multiple critiera, use the `AND` operator or the `OR`
+     * operator. The following examples shows a string that filters by several
+     * critiera:
+     * "evaluation<span>_</span>job.evaluation_job_id =
+     * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+     * <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_start =
+     * <var>{timestamp_1}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_end =
+     * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+     * <var>{display_name}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -898,15 +1046,37 @@ public Builder clearFilter() { * * *
-     * Optional. Support filtering by model id, job state, start and end time.
-     * Format:
-     * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-     * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-     * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-     * annotation_spec.display_name = {display_name}"
+     * Optional. To search evaluations, you can filter by the following:
+     * * 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 <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
+     *   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
+     *   threshold for the
+     *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+     *   the evaluation)
+     * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+     * * 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])
+     * To filter by multiple critiera, use the `AND` operator or the `OR`
+     * operator. The following examples shows a string that filters by several
+     * critiera:
+     * "evaluation<span>_</span>job.evaluation_job_id =
+     * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+     * <var>{model_name}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_start =
+     * <var>{timestamp_1}</var> AND
+     * evaluation<span>_</span>job.evaluation_job_run_time_end =
+     * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+     * <var>{display_name}</var>"
      * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -931,7 +1101,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -946,7 +1116,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -965,7 +1135,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -982,13 +1152,14 @@ public Builder clearPageSize() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-     * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-     * page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+     * to a previous search request.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -1008,13 +1179,14 @@ public java.lang.String getPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-     * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-     * page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+     * to a previous search request.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -1034,13 +1206,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-     * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-     * page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+     * to a previous search request.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -1059,13 +1232,14 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-     * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-     * page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+     * to a previous search request.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1080,13 +1254,14 @@ public Builder clearPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-     * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-     * page if empty.
+     * Typically obtained by the
+     * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+     * to a previous search request.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 94e8836b..90d051eb 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,13 @@ public interface SearchEvaluationsRequestOrBuilder * * *
-   * Required. Evaluation search parent. Format:
-   * projects/{project_id}
+   * Required. Evaluation search parent (project ID). Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -40,11 +42,13 @@ public interface SearchEvaluationsRequestOrBuilder * * *
-   * Required. Evaluation search parent. Format:
-   * projects/{project_id}
+   * Required. Evaluation search parent (project ID). Format:
+   * "projects/<var>{project_id}</var>"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -54,15 +58,37 @@ public interface SearchEvaluationsRequestOrBuilder * * *
-   * Optional. Support filtering by model id, job state, start and end time.
-   * Format:
-   * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-   * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-   * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-   * annotation_spec.display_name = {display_name}"
+   * Optional. To search evaluations, you can filter by the following:
+   * * 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 <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
+   *   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
+   *   threshold for the
+   *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+   *   the evaluation)
+   * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+   * * 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])
+   * To filter by multiple critiera, use the `AND` operator or the `OR`
+   * operator. The following examples shows a string that filters by several
+   * critiera:
+   * "evaluation<span>_</span>job.evaluation_job_id =
+   * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+   * <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_start =
+   * <var>{timestamp_1}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_end =
+   * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+   * <var>{display_name}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -71,15 +97,37 @@ public interface SearchEvaluationsRequestOrBuilder * * *
-   * Optional. Support filtering by model id, job state, start and end time.
-   * Format:
-   * "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
-   * evaluation_job.evaluation_job_run_time_start = {timestamp} AND
-   * evaluation_job.evaluation_job_run_time_end = {timestamp} AND
-   * annotation_spec.display_name = {display_name}"
+   * Optional. To search evaluations, you can filter by the following:
+   * * 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 <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
+   *   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
+   *   threshold for the
+   *   [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] that created
+   *   the evaluation)
+   * * evaluation<span>_</span>job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state])
+   * * 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])
+   * To filter by multiple critiera, use the `AND` operator or the `OR`
+   * operator. The following examples shows a string that filters by several
+   * critiera:
+   * "evaluation<span>_</span>job.evaluation_job_id =
+   * <var>{evaluation_job_id}</var> AND evaluation<span>_</span>job.model_id =
+   * <var>{model_name}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_start =
+   * <var>{timestamp_1}</var> AND
+   * evaluation<span>_</span>job.evaluation_job_run_time_end =
+   * <var>{timestamp_2}</var> AND annotation<span>_</span>spec.display_name =
+   * <var>{display_name}</var>"
    * 
* - * string filter = 2; + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -93,7 +141,7 @@ public interface SearchEvaluationsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 3; + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -104,13 +152,14 @@ public interface SearchEvaluationsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-   * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-   * page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+   * to a previous search request.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -120,13 +169,14 @@ public interface SearchEvaluationsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token]
-   * of the previous [DataLabelingService.SearchEvaluations] call. Return first
-   * page if empty.
+   * Typically obtained by the
+   * [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response
+   * to a previous search request.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 4; + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index fe12901f..a40b339a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -147,7 +147,7 @@ public java.util.List getEvalu * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -160,7 +160,7 @@ public java.util.List getEvalu * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -172,7 +172,7 @@ public int getEvaluationsCount() { * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -184,7 +184,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -643,7 +643,7 @@ private void ensureEvaluationsIsMutable() { * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -659,7 +659,7 @@ public java.util.List getEvalu * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -675,7 +675,7 @@ public int getEvaluationsCount() { * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -691,7 +691,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -714,7 +714,7 @@ public Builder setEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -734,7 +734,7 @@ public Builder setEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -756,7 +756,7 @@ public Builder addEvaluations(com.google.cloud.datalabeling.v1beta1.Evaluation v * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -779,7 +779,7 @@ public Builder addEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -799,7 +799,7 @@ public Builder addEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -819,7 +819,7 @@ public Builder addEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -839,7 +839,7 @@ public Builder addAllEvaluations( * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -858,7 +858,7 @@ public Builder clearEvaluations() { * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -877,7 +877,7 @@ public Builder removeEvaluations(int index) { * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -890,7 +890,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder getEvaluationsBu * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -907,7 +907,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -924,7 +924,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -937,7 +937,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -951,7 +951,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu * * *
-     * The list of evaluations to return.
+     * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; diff --git a/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 index ecf5a919..538b77f8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ public interface SearchEvaluationsResponseOrBuilder * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -37,7 +37,7 @@ public interface SearchEvaluationsResponseOrBuilder * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -47,7 +47,7 @@ public interface SearchEvaluationsResponseOrBuilder * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -57,7 +57,7 @@ public interface SearchEvaluationsResponseOrBuilder * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; @@ -68,7 +68,7 @@ public interface SearchEvaluationsResponseOrBuilder * * *
-   * The list of evaluations to return.
+   * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; diff --git a/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 index fc927695..a76646d9 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,12 +131,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of the Evaluation resource to search example comparison
-   * from. Format:
-   * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -155,12 +157,14 @@ public java.lang.String getParent() { * * *
-   * Required. Name of the Evaluation resource to search example comparison
-   * from. Format:
-   * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -186,7 +190,7 @@ public com.google.protobuf.ByteString getParentBytes() { * requested. Default value is 100. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -201,13 +205,14 @@ public int getPageSize() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchExampleComparisons.next_page_token][] of the previous
-   * [DataLabelingService.SearchExampleComparisons] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+   * to a previous search rquest.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -227,13 +232,14 @@ public java.lang.String getPageToken() { * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchExampleComparisons.next_page_token][] of the previous
-   * [DataLabelingService.SearchExampleComparisons] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+   * to a previous search rquest.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -612,12 +618,14 @@ public Builder mergeFrom( * * *
-     * Required. Name of the Evaluation resource to search example comparison
-     * from. Format:
-     * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -636,12 +644,14 @@ public java.lang.String getParent() { * * *
-     * Required. Name of the Evaluation resource to search example comparison
-     * from. Format:
-     * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -660,12 +670,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Name of the Evaluation resource to search example comparison
-     * from. Format:
-     * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -683,12 +695,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Name of the Evaluation resource to search example comparison
-     * from. Format:
-     * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+     * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -702,12 +716,14 @@ public Builder clearParent() { * * *
-     * Required. Name of the Evaluation resource to search example comparison
-     * from. Format:
-     * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+     * 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; + * + * 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. @@ -732,7 +748,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * requested. Default value is 100. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -747,7 +763,7 @@ public int getPageSize() { * requested. Default value is 100. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -766,7 +782,7 @@ public Builder setPageSize(int value) { * requested. Default value is 100. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -783,13 +799,14 @@ public Builder clearPageSize() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchExampleComparisons.next_page_token][] of the previous
-     * [DataLabelingService.SearchExampleComparisons] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+     * to a previous search rquest.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -809,13 +826,14 @@ public java.lang.String getPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchExampleComparisons.next_page_token][] of the previous
-     * [DataLabelingService.SearchExampleComparisons] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+     * to a previous search rquest.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -835,13 +853,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchExampleComparisons.next_page_token][] of the previous
-     * [DataLabelingService.SearchExampleComparisons] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+     * to a previous search rquest.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -860,13 +879,14 @@ public Builder setPageToken(java.lang.String value) { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchExampleComparisons.next_page_token][] of the previous
-     * [DataLabelingService.SearchExampleComparisons] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+     * to a previous search rquest.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -881,13 +901,14 @@ public Builder clearPageToken() { * *
      * Optional. A token identifying a page of results for the server to return.
-     * Typically obtained by
-     * [SearchExampleComparisons.next_page_token][] of the previous
-     * [DataLabelingService.SearchExampleComparisons] call.
-     * Return first page if empty.
+     * Typically obtained by the
+     * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+     * to a previous search rquest.
+     * If you don't specify this field, the API call requests the first page of
+     * the search.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/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 index 80438a73..1bf472e0 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,12 +27,14 @@ public interface SearchExampleComparisonsRequestOrBuilder * * *
-   * Required. Name of the Evaluation resource to search example comparison
-   * from. Format:
-   * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -41,12 +43,14 @@ public interface SearchExampleComparisonsRequestOrBuilder * * *
-   * Required. Name of the Evaluation resource to search example comparison
-   * from. Format:
-   * projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}
+   * 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; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -60,7 +64,7 @@ public interface SearchExampleComparisonsRequestOrBuilder * requested. Default value is 100. * * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,13 +75,14 @@ public interface SearchExampleComparisonsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchExampleComparisons.next_page_token][] of the previous
-   * [DataLabelingService.SearchExampleComparisons] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+   * to a previous search rquest.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -87,13 +92,14 @@ public interface SearchExampleComparisonsRequestOrBuilder * *
    * Optional. A token identifying a page of results for the server to return.
-   * Typically obtained by
-   * [SearchExampleComparisons.next_page_token][] of the previous
-   * [DataLabelingService.SearchExampleComparisons] call.
-   * Return first page if empty.
+   * Typically obtained by the
+   * [nextPageToken][SearchExampleComparisons.next_page_token] of the response
+   * to a previous search rquest.
+   * If you don't specify this field, the API call requests the first page of
+   * the search.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/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 index a193bdb8..8dda056d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -139,38 +139,88 @@ public interface ExampleComparisonOrBuilder 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(); - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+     * The ground truth output for the input.
+     * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ 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(); /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index); /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ int getModelCreatedExamplesCount(); /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ java.util.List getModelCreatedExamplesOrBuilderList(); /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOrBuilder( @@ -180,8 +230,8 @@ com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOr * * *
-   * Example comparisons containing annotation comparison between groundtruth
-   * and predictions.
+   * Example comparisons comparing ground truth output and predictions for a
+   * specific input.
    * 
* * Protobuf type {@code @@ -301,6 +351,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 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. @@ -309,6 +365,12 @@ 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. @@ -318,7 +380,15 @@ public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+     * The ground truth output for the input.
+     * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder() { return getGroundTruthExample(); } @@ -326,6 +396,12 @@ 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.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public java.util.List @@ -333,6 +409,12 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam return modelCreatedExamples_; } /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public java.util.List @@ -340,18 +422,36 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam return modelCreatedExamples_; } /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public int getModelCreatedExamplesCount() { return modelCreatedExamples_.size(); } /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index) { return modelCreatedExamples_.get(index); } /** + * + * + *
+     * Predictions by the model for the input.
+     * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOrBuilder( @@ -568,8 +668,8 @@ protected Builder newBuilderForType( * * *
-     * Example comparisons containing annotation comparison between groundtruth
-     * and predictions.
+     * Example comparisons comparing ground truth output and predictions for a
+     * specific input.
      * 
* * Protobuf type {@code @@ -815,6 +915,12 @@ public Builder mergeFrom( 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. @@ -823,6 +929,12 @@ 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. @@ -836,7 +948,15 @@ public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { return groundTruthExampleBuilder_.getMessage(); } } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public Builder setGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Example value) { if (groundTruthExampleBuilder_ == null) { if (value == null) { @@ -850,7 +970,15 @@ public Builder setGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Examp return this; } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public Builder setGroundTruthExample( com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { if (groundTruthExampleBuilder_ == null) { @@ -862,7 +990,15 @@ public Builder setGroundTruthExample( return this; } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Example value) { if (groundTruthExampleBuilder_ == null) { if (groundTruthExample_ != null) { @@ -880,7 +1016,15 @@ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Exa return this; } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public Builder clearGroundTruthExample() { if (groundTruthExampleBuilder_ == null) { groundTruthExample_ = null; @@ -892,13 +1036,29 @@ public Builder clearGroundTruthExample() { return this; } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public com.google.cloud.datalabeling.v1beta1.Example.Builder getGroundTruthExampleBuilder() { onChanged(); return getGroundTruthExampleFieldBuilder().getBuilder(); } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + */ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder() { if (groundTruthExampleBuilder_ != null) { @@ -909,7 +1069,15 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder getGroundTruthExamp : groundTruthExample_; } } - /** .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ + /** + * + * + *
+       * The ground truth output for the input.
+       * 
+ * + * .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, @@ -946,6 +1114,12 @@ private void ensureModelCreatedExamplesIsMutable() { modelCreatedExamplesBuilder_; /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -958,6 +1132,12 @@ private void ensureModelCreatedExamplesIsMutable() { } } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -969,6 +1149,12 @@ public int getModelCreatedExamplesCount() { } } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -980,6 +1166,12 @@ 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; * */ @@ -998,6 +1190,12 @@ public Builder setModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1013,6 +1211,12 @@ public Builder setModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1030,6 +1234,12 @@ 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; * */ @@ -1048,6 +1258,12 @@ public Builder addModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1063,6 +1279,12 @@ public Builder addModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1078,6 +1300,12 @@ public Builder addModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1093,6 +1321,12 @@ public Builder addAllModelCreatedExamples( return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1107,6 +1341,12 @@ public Builder clearModelCreatedExamples() { return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1121,6 +1361,12 @@ public Builder removeModelCreatedExamples(int index) { return this; } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1129,6 +1375,12 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder getModelCreatedExam return getModelCreatedExamplesFieldBuilder().getBuilder(index); } /** + * + * + *
+       * Predictions by the model for the input.
+       * 
+ * * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; * */ @@ -1141,6 +1393,12 @@ 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; * */ @@ -1153,6 +1411,12 @@ 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; * */ @@ -1162,6 +1426,12 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder getModelCreatedExam .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; * */ @@ -1171,6 +1441,12 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExam .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; * */ @@ -1263,6 +1539,12 @@ public com.google.protobuf.Parser getParserForType() { 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; * @@ -1273,6 +1555,12 @@ public com.google.protobuf.Parser getParserForType() { return exampleComparisons_; } /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1285,6 +1573,12 @@ public com.google.protobuf.Parser getParserForType() { return exampleComparisons_; } /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1293,6 +1587,12 @@ 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; * @@ -1302,6 +1602,12 @@ public int getExampleComparisonsCount() { return exampleComparisons_.get(index); } /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1771,6 +2077,12 @@ private void ensureExampleComparisonsIsMutable() { exampleComparisonsBuilder_; /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1786,6 +2098,12 @@ private void ensureExampleComparisonsIsMutable() { } } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1798,6 +2116,12 @@ public int getExampleComparisonsCount() { } } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1811,6 +2135,12 @@ public int getExampleComparisonsCount() { } } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1832,6 +2162,12 @@ public Builder setExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1851,6 +2187,12 @@ public Builder setExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1871,6 +2213,12 @@ public Builder addExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1892,6 +2240,12 @@ public Builder addExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1910,6 +2264,12 @@ public Builder addExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1929,6 +2289,12 @@ public Builder addExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1949,6 +2315,12 @@ public Builder addAllExampleComparisons( return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1964,6 +2336,12 @@ public Builder clearExampleComparisons() { return this; } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -1979,6 +2357,12 @@ 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; * @@ -1989,6 +2373,12 @@ public Builder removeExampleComparisons(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; * @@ -2003,6 +2393,12 @@ public Builder removeExampleComparisons(int index) { } } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -2019,6 +2415,12 @@ public Builder removeExampleComparisons(int index) { } } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -2032,6 +2434,12 @@ public Builder removeExampleComparisons(int index) { .ExampleComparison.getDefaultInstance()); } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -2046,6 +2454,12 @@ public Builder removeExampleComparisons(int index) { .ExampleComparison.getDefaultInstance()); } /** + * + * + *
+     * A list of example comparisons matching the search criteria.
+     * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * 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 index 8184fa7c..fe596ebc 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,12 @@ public interface SearchExampleComparisonsResponseOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * @@ -32,6 +38,12 @@ public interface SearchExampleComparisonsResponseOrBuilder 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; * @@ -39,12 +51,24 @@ public interface SearchExampleComparisonsResponseOrBuilder 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; * @@ -55,6 +79,12 @@ public interface SearchExampleComparisonsResponseOrBuilder .ExampleComparisonOrBuilder> getExampleComparisonsOrBuilderList(); /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * * * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; * diff --git a/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 index faaf8bfb..dfb4a2aa 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -129,7 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -152,7 +152,7 @@ public java.lang.String getAnnotationSpecSet() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -559,7 +559,7 @@ public Builder mergeFrom( * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -582,7 +582,7 @@ public java.lang.String getAnnotationSpecSet() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -605,7 +605,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -627,7 +627,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -645,7 +645,7 @@ public Builder clearAnnotationSpecSet() { * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. diff --git a/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 index 9721f438..ce49e331 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ public interface SegmentationConfigOrBuilder * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -44,7 +44,7 @@ public interface SegmentationConfigOrBuilder * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ diff --git a/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 index ef0208d3..e176e06f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index ae95ae74..0059268a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0d0ba7c5..297d44f7 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index cca8d94a..4b6e4cd2 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 658b9a1d..63795822 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 252ce263..8d352b5d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 396d005e..b8f15383 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 0cff6aa8..f9e94920 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,7 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * multiple labels for one text segment. * * - * bool allow_multi_label = 1; + * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -160,7 +160,7 @@ public boolean getAllowMultiLabel() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -182,7 +182,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -207,7 +207,9 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sentimentConfig field is set. */ @@ -221,7 +223,9 @@ public boolean hasSentimentConfig() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sentimentConfig. */ @@ -237,7 +241,9 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig( * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { @@ -618,7 +624,7 @@ public Builder mergeFrom( * multiple labels for one text segment. * * - * bool allow_multi_label = 1; + * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -633,7 +639,7 @@ public boolean getAllowMultiLabel() { * multiple labels for one text segment. * * - * bool allow_multi_label = 1; + * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowMultiLabel to set. * @return This builder for chaining. @@ -652,7 +658,7 @@ public Builder setAllowMultiLabel(boolean value) { * multiple labels for one text segment. * * - * bool allow_multi_label = 1; + * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -671,7 +677,7 @@ public Builder clearAllowMultiLabel() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -693,7 +699,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -715,7 +721,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -736,7 +742,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -753,7 +759,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -782,7 +788,9 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sentimentConfig field is set. */ @@ -796,7 +804,9 @@ public boolean hasSentimentConfig() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sentimentConfig. */ @@ -816,7 +826,9 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig( * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .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) { @@ -838,7 +850,9 @@ public Builder setSentimentConfig(com.google.cloud.datalabeling.v1beta1.Sentimen * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSentimentConfig( com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder builderForValue) { @@ -858,7 +872,9 @@ public Builder setSentimentConfig( * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSentimentConfig( com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { @@ -885,7 +901,9 @@ public Builder mergeSentimentConfig( * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSentimentConfig() { if (sentimentConfigBuilder_ == null) { @@ -905,7 +923,9 @@ public Builder clearSentimentConfig() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder getSentimentConfigBuilder() { @@ -920,7 +940,9 @@ public Builder clearSentimentConfig() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { @@ -939,7 +961,9 @@ public Builder clearSentimentConfig() { * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.SentimentConfig, diff --git a/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 index 628dd202..fb1e365a 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ public interface TextClassificationConfigOrBuilder * multiple labels for one text segment. * * - * bool allow_multi_label = 1; + * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -44,7 +44,7 @@ public interface TextClassificationConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -56,7 +56,7 @@ public interface TextClassificationConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 2; + * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -69,7 +69,9 @@ public interface TextClassificationConfigOrBuilder * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the sentimentConfig field is set. */ @@ -81,7 +83,9 @@ public interface TextClassificationConfigOrBuilder * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The sentimentConfig. */ @@ -93,7 +97,9 @@ public interface TextClassificationConfigOrBuilder * Optional. Configs for sentiment selection. * * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3; + * + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java index 3ed0aea0..3513a0c1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index c3751c36..76802466 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1f4e6a4d..2b97d726 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,7 +120,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -142,7 +142,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -489,7 +489,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -511,7 +511,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -533,7 +533,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -554,7 +554,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -571,7 +571,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. diff --git a/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 index e016216a..3496e713 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ public interface TextEntityExtractionConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -42,7 +42,7 @@ public interface TextEntityExtractionConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ diff --git a/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 index d64e0bc6..0cf791a2 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 7afaac74..bcdccb95 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index f440a37b..42a5be7f 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index 6a5c95be..0b5640b5 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a130ff2b..c353e5f1 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 6ef5bb14..5d6ac6c8 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 1ab79e99..0d479326 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,7 +143,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the evaluationJob field is set. */ @@ -157,7 +159,9 @@ public boolean hasEvaluationJob() { * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The evaluationJob. */ @@ -173,7 +177,9 @@ public 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.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { return getEvaluationJob(); @@ -185,10 +191,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -199,10 +212,17 @@ public boolean hasUpdateMask() { * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -213,10 +233,17 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -598,7 +625,9 @@ public Builder mergeFrom( * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the evaluationJob field is set. */ @@ -612,7 +641,9 @@ public boolean hasEvaluationJob() { * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The evaluationJob. */ @@ -632,7 +663,9 @@ public 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.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) { @@ -654,7 +687,9 @@ public Builder setEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluation * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEvaluationJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -674,7 +709,9 @@ public Builder setEvaluationJob( * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .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) { @@ -700,7 +737,9 @@ public Builder mergeEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluati * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEvaluationJob() { if (evaluationJobBuilder_ == null) { @@ -720,7 +759,9 @@ public Builder clearEvaluationJob() { * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluationJobBuilder() { @@ -734,7 +775,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { @@ -753,7 +796,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datalabeling.v1beta1.EvaluationJob, @@ -782,10 +827,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -796,10 +848,17 @@ public boolean hasUpdateMask() { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -816,10 +875,17 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -838,10 +904,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -857,10 +930,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -881,10 +961,17 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -901,10 +988,17 @@ public Builder clearUpdateMask() { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -915,10 +1009,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -933,10 +1034,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Optional. Mask for which field in evaluation_job should be updated.
+     * Optional. Mask for which fields to update. You can only provide the
+     * following fields:
+     * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+     * * `evaluationJobConfig.exampleCount`
+     * * `evaluationJobConfig.exampleSamplePercentage`
+     * You can provide more than one of these fields by separating them with
+     * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/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 index 01db29b8..763ac73e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,9 @@ public interface UpdateEvaluationJobRequestOrBuilder * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the evaluationJob field is set. */ @@ -42,7 +44,9 @@ public interface UpdateEvaluationJobRequestOrBuilder * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The evaluationJob. */ @@ -54,7 +58,9 @@ public interface UpdateEvaluationJobRequestOrBuilder * Required. Evaluation job that is going to be updated. * * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder(); @@ -62,10 +68,17 @@ public interface UpdateEvaluationJobRequestOrBuilder * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -74,10 +87,17 @@ public interface UpdateEvaluationJobRequestOrBuilder * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -86,10 +106,17 @@ public interface UpdateEvaluationJobRequestOrBuilder * * *
-   * Optional. Mask for which field in evaluation_job should be updated.
+   * Optional. Mask for which fields to update. You can only provide the
+   * following fields:
+   * * `evaluationJobConfig.humanAnnotationConfig.instruction`
+   * * `evaluationJobConfig.exampleCount`
+   * * `evaluationJobConfig.exampleSamplePercentage`
+   * You can provide more than one of these fields by separating them with
+   * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2; + * .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/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java index 23118cae..651461d3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 index e8844803..620819bd 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a31fa437..95104f98 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 5123ca2b..d4251274 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 30ac97d1..17aa1f17 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -146,7 +146,7 @@ public interface AnnotationSpecSetConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -158,7 +158,7 @@ public interface AnnotationSpecSetConfigOrBuilder * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -172,7 +172,7 @@ public interface AnnotationSpecSetConfigOrBuilder * choose multiple labels from one annotation spec set. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -288,7 +288,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -310,7 +310,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -336,7 +336,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * choose multiple labels from one annotation spec set. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -739,7 +739,7 @@ public Builder mergeFrom( * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The annotationSpecSet. */ @@ -761,7 +761,7 @@ public java.lang.String getAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for annotationSpecSet. */ @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The annotationSpecSet to set. * @return This builder for chaining. @@ -804,7 +804,7 @@ public Builder setAnnotationSpecSet(java.lang.String value) { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -821,7 +821,7 @@ public Builder clearAnnotationSpecSet() { * Required. Annotation spec set resource name. * * - * string annotation_spec_set = 1; + * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. @@ -846,7 +846,7 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { * choose multiple labels from one annotation spec set. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The allowMultiLabel. */ @@ -861,7 +861,7 @@ public boolean getAllowMultiLabel() { * choose multiple labels from one annotation spec set. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The allowMultiLabel to set. * @return This builder for chaining. @@ -880,7 +880,7 @@ public Builder setAllowMultiLabel(boolean value) { * choose multiple labels from one annotation spec set. * * - * bool allow_multi_label = 2; + * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public com.google.protobuf.Parser getParserForType() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -988,7 +988,7 @@ public com.google.protobuf.Parser getParserForType() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -1011,7 +1011,7 @@ public com.google.protobuf.Parser getParserForType() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public int getAnnotationSpecSetConfigsCount() { @@ -1030,7 +1030,7 @@ public int getAnnotationSpecSetConfigsCount() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * 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 @@ -1050,7 +1050,7 @@ public int getAnnotationSpecSetConfigsCount() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig @@ -1068,7 +1068,7 @@ public int getAnnotationSpecSetConfigsCount() { * Optional. Option to apply shot detection on the video. * * - * bool apply_shot_detection = 2; + * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The applyShotDetection. */ @@ -1499,7 +1499,7 @@ private void ensureAnnotationSpecSetConfigsIsMutable() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -1524,7 +1524,7 @@ private void ensureAnnotationSpecSetConfigsIsMutable() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public int getAnnotationSpecSetConfigsCount() { @@ -1547,7 +1547,7 @@ public int getAnnotationSpecSetConfigsCount() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * 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 @@ -1571,7 +1571,7 @@ public int getAnnotationSpecSetConfigsCount() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setAnnotationSpecSetConfigs( @@ -1603,7 +1603,7 @@ public Builder setAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setAnnotationSpecSetConfigs( @@ -1633,7 +1633,7 @@ public Builder setAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAnnotationSpecSetConfigs( @@ -1664,7 +1664,7 @@ public Builder addAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAnnotationSpecSetConfigs( @@ -1696,7 +1696,7 @@ public Builder addAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAnnotationSpecSetConfigs( @@ -1725,7 +1725,7 @@ public Builder addAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAnnotationSpecSetConfigs( @@ -1755,7 +1755,7 @@ public Builder addAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllAnnotationSpecSetConfigs( @@ -1786,7 +1786,7 @@ public Builder addAllAnnotationSpecSetConfigs( * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearAnnotationSpecSetConfigs() { @@ -1812,7 +1812,7 @@ public Builder clearAnnotationSpecSetConfigs() { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeAnnotationSpecSetConfigs(int index) { @@ -1838,7 +1838,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * 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 @@ -1859,7 +1859,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig @@ -1884,7 +1884,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -1911,7 +1911,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * 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 @@ -1935,7 +1935,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * 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 @@ -1960,7 +1960,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< @@ -2003,7 +2003,7 @@ public Builder removeAnnotationSpecSetConfigs(int index) { * Optional. Option to apply shot detection on the video. * * - * bool apply_shot_detection = 2; + * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The applyShotDetection. */ @@ -2017,7 +2017,7 @@ public boolean getApplyShotDetection() { * Optional. Option to apply shot detection on the video. * * - * bool apply_shot_detection = 2; + * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The applyShotDetection to set. * @return This builder for chaining. @@ -2035,7 +2035,7 @@ public Builder setApplyShotDetection(boolean value) { * Optional. Option to apply shot detection on the video. * * - * bool apply_shot_detection = 2; + * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/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 index 7d30595e..1e05fc83 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ public interface VideoClassificationConfigOrBuilder * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List< @@ -55,7 +55,7 @@ public interface VideoClassificationConfigOrBuilder * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig @@ -73,7 +73,7 @@ public interface VideoClassificationConfigOrBuilder * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ int getAnnotationSpecSetConfigsCount(); @@ -90,7 +90,7 @@ public interface VideoClassificationConfigOrBuilder * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List< @@ -111,7 +111,7 @@ public interface VideoClassificationConfigOrBuilder * * * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1; + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder @@ -124,7 +124,7 @@ public interface VideoClassificationConfigOrBuilder * Optional. Option to apply shot detection on the video. * * - * bool apply_shot_detection = 2; + * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The applyShotDetection. */ diff --git a/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 index 39193be7..be294454 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index a75582f3..f00cf2b3 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index caf97368..52632471 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index c093e9d6..12beec7e 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 5f384eea..1064821d 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index cf044669..126d5387 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 9cff685d..756c77fb 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index 362b1c74..7eb15b34 100644 --- a/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,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/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 index b71e4598..4750fdc3 100644 --- a/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 @@ -18,15 +18,16 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; -import "google/cloud/datalabeling/v1beta1/data_payloads.proto"; import "google/protobuf/duration.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; -// Specifies where is the answer from. +// Specifies where the annotation comes from (whether it was provided by a +// human labeler or a different source). enum AnnotationSource { ANNOTATION_SOURCE_UNSPECIFIED = 0; @@ -71,10 +72,11 @@ enum AnnotationSentiment { enum AnnotationType { ANNOTATION_TYPE_UNSPECIFIED = 0; - // Classification annotations in an image. + // Classification annotations in an image. Allowed for continuous evaluation. IMAGE_CLASSIFICATION_ANNOTATION = 1; - // Bounding box annotations in an image. + // Bounding box annotations in an image. A form of image object detection. + // Allowed for continuous evaluation. IMAGE_BOUNDING_BOX_ANNOTATION = 2; // Oriented bounding box. The box does not have to be parallel to horizontal @@ -102,13 +104,13 @@ enum AnnotationType { // Video event annotation. VIDEO_EVENT_ANNOTATION = 6; - // Classification for text. + // Classification for text. Allowed for continuous evaluation. TEXT_CLASSIFICATION_ANNOTATION = 8; // Entity extraction for text. TEXT_ENTITY_EXTRACTION_ANNOTATION = 9; - // General classification. + // General classification. Allowed for continuous evaluation. GENERAL_CLASSIFICATION_ANNOTATION = 14; } diff --git a/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 index bd5413dc..71bc12a1 100644 --- a/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 @@ -18,28 +18,36 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; -// AnnotationSpecSet is a collection of label definitions. For example, in -// image classification tasks, we define a set of labels, this set is called -// AnnotationSpecSet. AnnotationSpecSet is immutable upon creation. +// An AnnotationSpecSet is a collection of label definitions. For example, in +// image classification tasks, you define a set of possible labels for images as +// an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation. message AnnotationSpecSet { - // Output only. AnnotationSpecSet resource name, format: - // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} + option (google.api.resource) = { + type: "datalabeling.googleapis.com/AnnotationSpecSet" + pattern: "projects/{project}/annotationSpecSets/{annotation_spec_set}" + }; + + // Output only. The AnnotationSpecSet resource name in the following format: + // + // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}" string name = 1; - // Required. The display name for AnnotationSpecSet defined by user. - // Maximum of 64 characters. + // Required. The display name for AnnotationSpecSet that you define when you + // create it. Maximum of 64 characters. string display_name = 2; // Optional. User-provided description of the annotation specification set. - // The description can be up to 10000 characters long. + // The description can be up to 10,000 characters long. string description = 3; - // Required. The actual spec set defined by the users. + // Required. The array of AnnotationSpecs that you define when you create the + // AnnotationSpecSet. These are the possible labels for the labeling task. repeated AnnotationSpec annotation_specs = 4; // Output only. The names of any related resources that are blocking changes @@ -47,12 +55,15 @@ message AnnotationSpecSet { repeated string blocking_resources = 5; } -// Container of information related to one annotation spec. +// Container of information related to one possible annotation that can be used +// in a labeling task. For example, an image classification task where images +// are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and +// an AnnotationSpec for `cat`. message AnnotationSpec { // Required. The display name of the AnnotationSpec. Maximum of 64 characters. string display_name = 1; // Optional. User-provided description of the annotation specification. - // The description can be up to 10000 characters long. + // The description can be up to 10,000 characters long. string description = 2; } diff --git a/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 index 8395206d..7616bc2f 100644 --- a/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 @@ -19,14 +19,14 @@ package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; -import "google/cloud/datalabeling/v1beta1/annotation.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; import "google/cloud/datalabeling/v1beta1/dataset.proto"; import "google/cloud/datalabeling/v1beta1/evaluation.proto"; import "google/cloud/datalabeling/v1beta1/evaluation_job.proto"; import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"; import "google/cloud/datalabeling/v1beta1/instruction.proto"; -import "google/cloud/datalabeling/v1beta1/operations.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -37,8 +37,7 @@ option java_package = "com.google.cloud.datalabeling.v1beta1"; service DataLabelingService { option (google.api.default_host) = "datalabeling.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Creates dataset. If success return a Dataset resource. rpc CreateDataset(CreateDatasetRequest) returns (Dataset) { @@ -46,6 +45,7 @@ service DataLabelingService { post: "/v1beta1/{parent=projects/*}/datasets" body: "*" }; + option (google.api.method_signature) = "parent,dataset"; } // Gets dataset by resource name. @@ -53,6 +53,7 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{name=projects/*/datasets/*}" }; + option (google.api.method_signature) = "name"; } // Lists datasets under a project. Pagination is supported. @@ -60,6 +61,7 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/datasets" }; + option (google.api.method_signature) = "parent,filter"; } // Deletes a dataset by resource name. @@ -67,6 +69,7 @@ service DataLabelingService { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/datasets/*}" }; + option (google.api.method_signature) = "name"; } // Imports data into dataset based on source locations defined in request. @@ -79,6 +82,11 @@ service DataLabelingService { post: "/v1beta1/{name=projects/*/datasets/*}:importData" body: "*" }; + option (google.api.method_signature) = "name,input_config"; + option (google.longrunning.operation_info) = { + response_type: "ImportDataOperationResponse" + metadata_type: "ImportDataOperationMetadata" + }; } // Exports data and annotations from dataset. @@ -87,6 +95,11 @@ service DataLabelingService { post: "/v1beta1/{name=projects/*/datasets/*}:exportData" body: "*" }; + option (google.api.method_signature) = "name,annotated_dataset,filter,output_config"; + option (google.longrunning.operation_info) = { + response_type: "ExportDataOperationResponse" + metadata_type: "ExportDataOperationMetadata" + }; } // Gets a data item in a dataset by resource name. This API can be @@ -95,6 +108,7 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{name=projects/*/datasets/*/dataItems/*}" }; + option (google.api.method_signature) = "name"; } // Lists data items in a dataset. This API can be called after data @@ -103,27 +117,27 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/datasets/*}/dataItems" }; + option (google.api.method_signature) = "parent,filter"; } // Gets an annotated dataset by resource name. - rpc GetAnnotatedDataset(GetAnnotatedDatasetRequest) - returns (AnnotatedDataset) { + rpc GetAnnotatedDataset(GetAnnotatedDatasetRequest) returns (AnnotatedDataset) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}" }; + option (google.api.method_signature) = "name"; } // Lists annotated datasets for a dataset. Pagination is supported. - rpc ListAnnotatedDatasets(ListAnnotatedDatasetsRequest) - returns (ListAnnotatedDatasetsResponse) { + rpc ListAnnotatedDatasets(ListAnnotatedDatasetsRequest) returns (ListAnnotatedDatasetsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/datasets/*}/annotatedDatasets" }; + option (google.api.method_signature) = "parent,filter"; } // Deletes an annotated dataset by resource name. - rpc DeleteAnnotatedDataset(DeleteAnnotatedDatasetRequest) - returns (google.protobuf.Empty) { + rpc DeleteAnnotatedDataset(DeleteAnnotatedDatasetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*}" }; @@ -136,6 +150,11 @@ service DataLabelingService { post: "/v1beta1/{parent=projects/*/datasets/*}/image:label" body: "*" }; + option (google.api.method_signature) = "parent,basic_config,feature"; + option (google.longrunning.operation_info) = { + response_type: "AnnotatedDataset" + metadata_type: "LabelOperationMetadata" + }; } // Starts a labeling task for video. The type of video labeling task is @@ -145,6 +164,11 @@ service DataLabelingService { post: "/v1beta1/{parent=projects/*/datasets/*}/video:label" body: "*" }; + option (google.api.method_signature) = "parent,basic_config,feature"; + option (google.longrunning.operation_info) = { + response_type: "AnnotatedDataset" + metadata_type: "LabelOperationMetadata" + }; } // Starts a labeling task for text. The type of text labeling task is @@ -154,6 +178,11 @@ service DataLabelingService { post: "/v1beta1/{parent=projects/*/datasets/*}/text:label" body: "*" }; + option (google.api.method_signature) = "parent,basic_config,feature"; + option (google.longrunning.operation_info) = { + response_type: "AnnotatedDataset" + metadata_type: "LabelOperationMetadata" + }; } // Gets an example by resource name, including both data and annotation. @@ -161,6 +190,7 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{name=projects/*/datasets/*/annotatedDatasets/*/examples/*}" }; + option (google.api.method_signature) = "name,filter"; } // Lists examples in an annotated dataset. Pagination is supported. @@ -168,48 +198,53 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/datasets/*/annotatedDatasets/*}/examples" }; + option (google.api.method_signature) = "parent,filter"; } // Creates an annotation spec set by providing a set of labels. - rpc CreateAnnotationSpecSet(CreateAnnotationSpecSetRequest) - returns (AnnotationSpecSet) { + rpc CreateAnnotationSpecSet(CreateAnnotationSpecSetRequest) returns (AnnotationSpecSet) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*}/annotationSpecSets" body: "*" }; + option (google.api.method_signature) = "parent,annotation_spec_set"; } // Gets an annotation spec set by resource name. - rpc GetAnnotationSpecSet(GetAnnotationSpecSetRequest) - returns (AnnotationSpecSet) { + rpc GetAnnotationSpecSet(GetAnnotationSpecSetRequest) returns (AnnotationSpecSet) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/annotationSpecSets/*}" }; + option (google.api.method_signature) = "name"; } // Lists annotation spec sets for a project. Pagination is supported. - rpc ListAnnotationSpecSets(ListAnnotationSpecSetsRequest) - returns (ListAnnotationSpecSetsResponse) { + rpc ListAnnotationSpecSets(ListAnnotationSpecSetsRequest) returns (ListAnnotationSpecSetsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/annotationSpecSets" }; + option (google.api.method_signature) = "parent,filter"; } // Deletes an annotation spec set by resource name. - rpc DeleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest) - returns (google.protobuf.Empty) { + rpc DeleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/annotationSpecSets/*}" }; + option (google.api.method_signature) = "name"; } // Creates an instruction for how data should be labeled. - rpc CreateInstruction(CreateInstructionRequest) - returns (google.longrunning.Operation) { + rpc CreateInstruction(CreateInstructionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*}/instructions" body: "*" }; + option (google.api.method_signature) = "parent,instruction"; + option (google.longrunning.operation_info) = { + response_type: "Instruction" + metadata_type: "CreateInstructionMetadata" + }; } // Gets an instruction by resource name. @@ -217,49 +252,51 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{name=projects/*/instructions/*}" }; + option (google.api.method_signature) = "name"; } // Lists instructions for a project. Pagination is supported. - rpc ListInstructions(ListInstructionsRequest) - returns (ListInstructionsResponse) { + rpc ListInstructions(ListInstructionsRequest) returns (ListInstructionsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/instructions" }; + option (google.api.method_signature) = "parent,filter"; } // Deletes an instruction object by resource name. - rpc DeleteInstruction(DeleteInstructionRequest) - returns (google.protobuf.Empty) { + rpc DeleteInstruction(DeleteInstructionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/instructions/*}" }; + option (google.api.method_signature) = "name"; } - // Gets an evaluation by resource name. + // Gets an evaluation by resource name (to search, use + // [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]). rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/datasets/*/evaluations/*}" }; + option (google.api.method_signature) = "name"; } - // Searchs evaluations within a project. Supported filter: evaluation_job, - // evaluation_time. - rpc SearchEvaluations(SearchEvaluationsRequest) - returns (SearchEvaluationsResponse) { + // Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project. + rpc SearchEvaluations(SearchEvaluationsRequest) returns (SearchEvaluationsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/evaluations:search" }; + option (google.api.method_signature) = "parent,filter"; } - // Searchs example comparisons in evaluation, in format of examples - // of both ground truth and prediction(s). It is represented as a search with - // evaluation id. - rpc SearchExampleComparisons(SearchExampleComparisonsRequest) - returns (SearchExampleComparisonsResponse) { + // 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. + rpc SearchExampleComparisons(SearchExampleComparisonsRequest) returns (SearchExampleComparisonsResponse) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/datasets/*/evaluations/*}/exampleComparisons:search" body: "*" }; + option (google.api.method_signature) = "parent"; } // Creates an evaluation job. @@ -268,14 +305,21 @@ service DataLabelingService { post: "/v1beta1/{parent=projects/*}/evaluationJobs" body: "*" }; + option (google.api.method_signature) = "parent,job"; } - // Updates an evaluation job. + // 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. rpc UpdateEvaluationJob(UpdateEvaluationJobRequest) returns (EvaluationJob) { option (google.api.http) = { patch: "/v1beta1/{evaluation_job.name=projects/*/evaluationJobs/*}" body: "evaluation_job" }; + option (google.api.method_signature) = "evaluation_job,update_mask"; } // Gets an evaluation job by resource name. @@ -283,43 +327,44 @@ service DataLabelingService { option (google.api.http) = { get: "/v1beta1/{name=projects/*/evaluationJobs/*}" }; + option (google.api.method_signature) = "name"; } - // Pauses an evaluation job. Pausing a evaluation job that is already in - // PAUSED state will be a no-op. - rpc PauseEvaluationJob(PauseEvaluationJobRequest) - returns (google.protobuf.Empty) { + // Pauses an evaluation job. Pausing an evaluation job that is already in a + // `PAUSED` state is a no-op. + rpc PauseEvaluationJob(PauseEvaluationJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/evaluationJobs/*}:pause" body: "*" }; + option (google.api.method_signature) = "name"; } - // Resumes a paused evaluation job. Deleted evaluation job can't be resumed. - // Resuming a running evaluation job will be a no-op. - rpc ResumeEvaluationJob(ResumeEvaluationJobRequest) - returns (google.protobuf.Empty) { + // Resumes a paused evaluation job. A deleted evaluation job can't be resumed. + // Resuming a running or scheduled evaluation job is a no-op. + rpc ResumeEvaluationJob(ResumeEvaluationJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/evaluationJobs/*}:resume" body: "*" }; + option (google.api.method_signature) = "name"; } // Stops and deletes an evaluation job. - rpc DeleteEvaluationJob(DeleteEvaluationJobRequest) - returns (google.protobuf.Empty) { + rpc DeleteEvaluationJob(DeleteEvaluationJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/evaluationJobs/*}" }; + option (google.api.method_signature) = "name"; } // Lists all evaluation jobs within a project with possible filters. // Pagination is supported. - rpc ListEvaluationJobs(ListEvaluationJobsRequest) - returns (ListEvaluationJobsResponse) { + rpc ListEvaluationJobs(ListEvaluationJobsRequest) returns (ListEvaluationJobsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*}/evaluationJobs" }; + option (google.api.method_signature) = "parent,filter"; } } @@ -327,38 +372,53 @@ service DataLabelingService { message CreateDatasetRequest { // Required. Dataset resource parent, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. The dataset to be created. - Dataset dataset = 2; + Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetDataSet. message GetDatasetRequest { // Required. Dataset resource name, format: // projects/{project_id}/datasets/{dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; } // Request message for ListDataset. message ListDatasetsRequest { // Required. Dataset resource parent, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Optional. Filter on dataset is not supported at this moment. - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] - // of the previous [DataLabelingService.ListDatasets] call. Returns the first - // page if empty. - string page_token = 4; + // [ListDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDatasetsResponse.next_page_token] of the previous + // [DataLabelingService.ListDatasets] call. + // Returns the first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing datasets within a project. @@ -374,17 +434,27 @@ message ListDatasetsResponse { message DeleteDatasetRequest { // Required. Dataset resource name, format: // projects/{project_id}/datasets/{dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; } // Request message for ImportData API. message ImportDataRequest { // Required. Dataset resource name, format: // projects/{project_id}/datasets/{dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Required. Specify the input source of the data. - InputConfig input_config = 2; + InputConfig input_config = 2 [(google.api.field_behavior) = REQUIRED]; // Email of the user who started the import task and should be notified by // email. If empty no notification will be sent. @@ -395,20 +465,30 @@ message ImportDataRequest { message ExportDataRequest { // Required. Dataset resource name, format: // projects/{project_id}/datasets/{dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Required. Annotated dataset resource name. DataItem in // Dataset and their annotations in specified annotated dataset will be // exported. It's in format of // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ // {annotated_dataset_id} - string annotated_dataset = 2; + string annotated_dataset = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + } + ]; // Optional. Filter is not supported at this moment. - string filter = 3; + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; // Required. Specify the output destination. - OutputConfig output_config = 4; + OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED]; // Email of the user who started the export task and should be notified by // email. If empty no notification will be sent. @@ -419,28 +499,38 @@ message ExportDataRequest { message GetDataItemRequest { // Required. The name of the data item to get, format: // projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/DataItem" + } + ]; } // Request message for ListDataItems. message ListDataItemsRequest { // Required. Name of the dataset to list data items, format: // projects/{project_id}/datasets/{dataset_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Optional. Filter is not supported at this moment. - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] - // of the previous [DataLabelingService.ListDataItems] call. Return first page - // if empty. - string page_token = 4; + // [ListDataItemsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListDataItemsResponse.next_page_token] of the previous + // [DataLabelingService.ListDataItems] call. + // Return first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing data items in a dataset. @@ -457,28 +547,38 @@ message GetAnnotatedDatasetRequest { // Required. Name of the annotated dataset to get, format: // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ // {annotated_dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + } + ]; } // Request message for ListAnnotatedDatasets. message ListAnnotatedDatasetsRequest { // Required. Name of the dataset to list annotated datasets, format: // projects/{project_id}/datasets/{dataset_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Optional. Filter is not supported at this moment. - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] - // of the previous [DataLabelingService.ListAnnotatedDatasets] call. Return - // first page if empty. - string page_token = 4; + // [ListAnnotatedDatasetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.next_page_token] of the previous + // [DataLabelingService.ListAnnotatedDatasets] call. + // Return first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing annotated datasets for a dataset. @@ -495,7 +595,12 @@ message DeleteAnnotatedDatasetRequest { // Required. Name of the annotated dataset to delete, format: // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ // {annotated_dataset_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + } + ]; } // Request message for starting an image labeling task. @@ -553,13 +658,18 @@ message LabelImageRequest { // Required. Name of the dataset to request labeling task, format: // projects/{project_id}/datasets/{dataset_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Required. Basic human annotation config. - HumanAnnotationConfig basic_config = 2; + HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The type of image labeling task. - Feature feature = 3; + Feature feature = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for LabelVideo. @@ -607,13 +717,18 @@ message LabelVideoRequest { // Required. Name of the dataset to request labeling task, format: // projects/{project_id}/datasets/{dataset_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Required. Basic human annotation config. - HumanAnnotationConfig basic_config = 2; + HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The type of video labeling task. - Feature feature = 3; + Feature feature = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for LabelText. @@ -645,13 +760,18 @@ message LabelTextRequest { // Required. Name of the data set to request labeling task, format: // projects/{project_id}/datasets/{dataset_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; // Required. Basic human annotation config. - HumanAnnotationConfig basic_config = 2; + HumanAnnotationConfig basic_config = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The type of text labeling task. - Feature feature = 6; + Feature feature = 6 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetExample @@ -659,35 +779,45 @@ message GetExampleRequest { // Required. Name of example, format: // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ // {annotated_dataset_id}/examples/{example_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Example" + } + ]; // Optional. An expression for filtering Examples. Filter by // annotation_spec.display_name is supported. Format // "annotation_spec.display_name = {display_name}" - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for ListExamples. message ListExamplesRequest { // Required. Example resource parent. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + } + ]; // Optional. An expression for filtering Examples. For annotated datasets that // have annotation spec set, filter by // annotation_spec.display_name is supported. Format // "annotation_spec.display_name = {display_name}" - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] - // of the previous [DataLabelingService.ListExamples] call. Return first page - // if empty. - string page_token = 4; + // [ListExamplesResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListExamplesResponse.next_page_token] of the previous + // [DataLabelingService.ListExamples] call. + // Return first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing Examples in and annotated dataset. @@ -703,40 +833,55 @@ message ListExamplesResponse { message CreateAnnotationSpecSetRequest { // Required. AnnotationSpecSet resource parent, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // 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. - AnnotationSpecSet annotation_spec_set = 2; + AnnotationSpecSet annotation_spec_set = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetAnnotationSpecSet. message GetAnnotationSpecSetRequest { // Required. AnnotationSpecSet resource name, format: // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotationSpecSet" + } + ]; } // Request message for ListAnnotationSpecSets. message ListAnnotationSpecSetsRequest { // Required. Parent of AnnotationSpecSet resource, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Optional. Filter is not supported at this moment. - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] - // of the previous [DataLabelingService.ListAnnotationSpecSets] call. Return - // first page if empty. - string page_token = 4; + // [ListAnnotationSpecSetsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.next_page_token] of the previous + // [DataLabelingService.ListAnnotationSpecSets] call. + // Return first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing annotation spec set under a project. @@ -752,52 +897,77 @@ message ListAnnotationSpecSetsResponse { message DeleteAnnotationSpecSetRequest { // Required. AnnotationSpec resource name, format: // `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotationSpecSet" + } + ]; } // Request message for CreateInstruction. message CreateInstructionRequest { // Required. Instruction resource parent, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. Instruction of how to perform the labeling task. - Instruction instruction = 2; + Instruction instruction = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetInstruction. message GetInstructionRequest { // Required. Instruction resource name, format: // projects/{project_id}/instructions/{instruction_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Instruction" + } + ]; } // Request message for DeleteInstruction. message DeleteInstructionRequest { // Required. Instruction resource name, format: // projects/{project_id}/instructions/{instruction_id} - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Instruction" + } + ]; } // Request message for ListInstructions. message ListInstructionsRequest { // Required. Instruction resource parent, format: // projects/{project_id} - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Optional. Filter is not supported at this moment. - string filter = 2; + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. // Typically obtained by - // [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] - // of the previous [DataLabelingService.ListInstructions] call. Return first - // page if empty. - string page_token = 4; + // [ListInstructionsResponse.next_page_token][google.cloud.datalabeling.v1beta1.ListInstructionsResponse.next_page_token] of the previous + // [DataLabelingService.ListInstructions] call. + // Return first page if empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of listing instructions under a project. @@ -812,39 +982,77 @@ message ListInstructionsResponse { // Request message for GetEvaluation. message GetEvaluationRequest { // Required. Name of the evaluation. Format: - // 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' - string name = 1; + // + // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Evaluation" + } + ]; } // Request message for SearchEvaluation. message SearchEvaluationsRequest { - // Required. Evaluation search parent. Format: - // projects/{project_id} - string parent = 1; - - // Optional. Support filtering by model id, job state, start and end time. - // Format: - // "evaluation_job.evaluation_job_id = {evaluation_job_id} AND - // evaluation_job.evaluation_job_run_time_start = {timestamp} AND - // evaluation_job.evaluation_job_run_time_end = {timestamp} AND - // annotation_spec.display_name = {display_name}" - string filter = 2; + // Required. Evaluation search parent (project ID). Format: + // "projects/{project_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Evaluation" + } + ]; + + // Optional. To search evaluations, you can filter by the following: + // + // * evaluation_job.evaluation_job_id (the last part of + // [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) + // * evaluation_job.model_id (the {model_name} portion + // of [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) + // * evaluation_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_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_job.job_state ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) + // * annotation_spec.display_name (the Evaluation contains a + // metric for the annotation spec with this + // [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) + // + // To filter by multiple critiera, use the `AND` operator or the `OR` + // operator. The following examples shows a string that filters by several + // critiera: + // + // "evaluation_job.evaluation_job_id = + // {evaluation_job_id} AND evaluation_job.model_id = + // {model_name} AND + // evaluation_job.evaluation_job_run_time_start = + // {timestamp_1} AND + // evaluation_job.evaluation_job_run_time_end = + // {timestamp_2} AND annotation_spec.display_name = + // {display_name}" + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. - // Typically obtained by - // [SearchEvaluationsResponse.next_page_token][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] - // of the previous [DataLabelingService.SearchEvaluations] call. Return first - // page if empty. - string page_token = 4; + // Typically obtained by the + // [nextPageToken][google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.next_page_token] of the response + // to a previous search request. + // + // If you don't specify this field, the API call requests the first page of + // the search. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results of searching evaluations. message SearchEvaluationsResponse { - // The list of evaluations to return. + // The list of evaluations matching the search. repeated Evaluation evaluations = 1; // A token to retrieve next page of results. @@ -853,33 +1061,44 @@ message SearchEvaluationsResponse { // Request message of SearchExampleComparisons. message SearchExampleComparisonsRequest { - // Required. Name of the Evaluation resource to search example comparison - // from. Format: - // projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id} - string parent = 1; + // Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example + // comparisons from. Format: + // + // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Evaluation" + } + ]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. - // Typically obtained by - // [SearchExampleComparisons.next_page_token][] of the previous - // [DataLabelingService.SearchExampleComparisons] call. - // Return first page if empty. - string page_token = 3; + // Typically obtained by the + // [nextPageToken][SearchExampleComparisons.next_page_token] of the response + // to a previous search rquest. + // + // If you don't specify this field, the API call requests the first page of + // the search. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Results of searching example comparisons. message SearchExampleComparisonsResponse { - // Example comparisons containing annotation comparison between groundtruth - // and predictions. + // Example comparisons comparing ground truth output and predictions for a + // specific input. message ExampleComparison { + // The ground truth output for the input. Example ground_truth_example = 1; + // Predictions by the model for the input. repeated Example model_created_examples = 2; } + // A list of example comparisons matching the search criteria. repeated ExampleComparison example_comparisons = 1; // A token to retrieve next page of results. @@ -888,72 +1107,119 @@ message SearchExampleComparisonsResponse { // Request message for CreateEvaluationJob. message CreateEvaluationJobRequest { - // Required. Evaluation job resource parent, format: - // projects/{project_id}. - string parent = 1; + // Required. Evaluation job resource parent. Format: + // "projects/{project_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Required. The evaluation job to create. - EvaluationJob job = 2; + EvaluationJob job = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for UpdateEvaluationJob. message UpdateEvaluationJobRequest { // Required. Evaluation job that is going to be updated. - EvaluationJob evaluation_job = 1; - - // Optional. Mask for which field in evaluation_job should be updated. - google.protobuf.FieldMask update_mask = 2; + EvaluationJob evaluation_job = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask for which fields to update. You can only provide the + // following fields: + // + // * `evaluationJobConfig.humanAnnotationConfig.instruction` + // * `evaluationJobConfig.exampleCount` + // * `evaluationJobConfig.exampleSamplePercentage` + // + // You can provide more than one of these fields by separating them with + // commas. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for GetEvaluationJob. message GetEvaluationJobRequest { // Required. Name of the evaluation job. Format: - // 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' - string name = 1; + // + // "projects/{project_id}/evaluationJobs/{evaluation_job_id}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/EvaluationJob" + } + ]; } // Request message for PauseEvaluationJob. message PauseEvaluationJobRequest { // Required. Name of the evaluation job that is going to be paused. Format: - // 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' - string name = 1; + // + // "projects/{project_id}/evaluationJobs/{evaluation_job_id}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/EvaluationJob" + } + ]; } // Request message ResumeEvaluationJob. message ResumeEvaluationJobRequest { // Required. Name of the evaluation job that is going to be resumed. Format: - // 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' - string name = 1; + // + // "projects/{project_id}/evaluationJobs/{evaluation_job_id}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/EvaluationJob" + } + ]; } // Request message DeleteEvaluationJob. message DeleteEvaluationJobRequest { // Required. Name of the evaluation job that is going to be deleted. Format: - // 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' - string name = 1; + // + // "projects/{project_id}/evaluationJobs/{evaluation_job_id}" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/EvaluationJob" + } + ]; } // Request message for ListEvaluationJobs. message ListEvaluationJobsRequest { - // Required. Evaluation resource parent. Format: - // "projects/{project_id}" - string parent = 1; - - // Optional. Only support filter by model id and job state. Format: - // "evaluation_job.model_id = {model_id} AND evaluation_job.state = - // {EvaluationJob::State}" - string filter = 2; + // Required. Evaluation job resource parent. Format: + // "projects/{project_id}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Optional. You can filter the jobs to list by model_id (also known as + // model_name, as described in + // [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) or by + // evaluation job state (as described in [EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]). To filter + // by both criteria, use the `AND` operator or the `OR` operator. For example, + // you can use the following string for your filter: + // "evaluation_job.model_id = {model_name} AND + // evaluation_job.state = {evaluation_job_state}" + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Requested page size. Server may return fewer results than // requested. Default value is 100. - int32 page_size = 3; + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. A token identifying a page of results for the server to return. - // Typically obtained by - // [ListEvaluationJobs.next_page_token][] of the previous - // [DataLabelingService.ListEvaluationJobs] call. - // Return first page if empty. - string page_token = 4; + // Typically obtained by the + // [nextPageToken][google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.next_page_token] in the response + // to the previous request. The request returns the first page if this is + // empty. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; } // Results for listing evaluation jobs. diff --git a/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 index 02117c94..a0bc9a43 100644 --- a/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 @@ -18,7 +18,9 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/annotation.proto"; +import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; import "google/cloud/datalabeling/v1beta1/data_payloads.proto"; import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"; import "google/protobuf/timestamp.proto"; @@ -30,18 +32,26 @@ option java_package = "com.google.cloud.datalabeling.v1beta1"; enum DataType { DATA_TYPE_UNSPECIFIED = 0; + // Allowed for continuous evaluation. IMAGE = 1; VIDEO = 2; + // Allowed for continuous evaluation. TEXT = 4; + // Allowed for continuous evaluation. GENERAL_DATA = 6; } // Dataset is the resource to hold your data. You can request multiple labeling // tasks for a dataset while each one will generate an AnnotatedDataset. message Dataset { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/Dataset" + pattern: "projects/{project}/datasets/{dataset}" + }; + // Output only. Dataset resource name, format is: // projects/{project_id}/datasets/{dataset_id} string name = 1; @@ -82,20 +92,22 @@ message InputConfig { // Source located in Cloud Storage. GcsSource gcs_source = 2; + // Source located in BigQuery. You must specify this field if you are using + // this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. BigQuerySource bigquery_source = 5; } // Required. Data type must be specifed when user tries to import data. DataType data_type = 1; - // Optional. If input contains annotation, user needs to specify the - // type and metadata of the annotation when creating it as an annotated - // dataset. + // Optional. The type of annotation to be performed on this data. You must + // specify this field if you are using this InputConfig in an + // [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. AnnotationType annotation_type = 3; - // Optional. Metadata about annotations in the input. Each annotation type may - // have different metadata. - // Metadata for classification problem. + // 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. ClassificationMetadata classification_metadata = 4; } @@ -123,10 +135,24 @@ message GcsSource { string mime_type = 2; } -// The BigQuery location for the input content. +// 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 +// model version. message BigQuerySource { - // Required. BigQuery URI to a table, up to 2000 characters long. - // Accepted forms: BigQuery gs path e.g. bq://projectId.bqDatasetId.bqTableId + // 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 + // creates a table at the URI with the correct schema when you create your + // [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists, + // it must have the + // [correct + // schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). + // + // Provide the table URI in the following format: + // + // "bq://{your_project_id}/{your_dataset_name}/{your_table_name}" + // + // [Learn + // more](/ml-engine/docs/continuous-evaluation/create-job#table-schema). string input_uri = 1; } @@ -164,6 +190,11 @@ message GcsFolderDestination { // DataItem is a piece of data, without annotation. For example, an image. message DataItem { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/DataItem" + pattern: "projects/{project}/datasets/{dataset}/dataItems/{data_item}" + }; + // Output only. oneof payload { // The image payload, a container of the image bytes/uri. @@ -185,6 +216,11 @@ message DataItem { // labeling task will generate an AnnotatedDataset under the Dataset that the // task is requested for. message AnnotatedDataset { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" + }; + // Output only. AnnotatedDataset resource name in format of: // projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ // {annotated_dataset_id} @@ -281,6 +317,11 @@ message AnnotatedDatasetMetadata { // An Example is a piece of data and its annotation. For example, an image with // label "house". message Example { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/Example" + pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}" + }; + // Output only. The data part of Example. oneof payload { // The image payload, a container of the image bytes/uri. diff --git a/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 index ad1e975a..fde0366d 100644 --- a/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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/annotation.proto"; import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto"; import "google/protobuf/timestamp.proto"; @@ -26,51 +27,72 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1 option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; -// Describes an evaluation between 2 annotated datasets. Created by an -// evaluation plan. +// 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. message Evaluation { - // Resource name of an evaluation. - // Format: - // 'projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' + option (google.api.resource) = { + type: "datalabeling.googleapis.com/Evaluation" + pattern: "projects/{project}/datasets/{dataset}/evaluations/{evaluation}" + }; + + // Output only. Resource name of an evaluation. The name has the following + // format: + // + // "projects/{project_id}/datasets/{dataset_id}/evaluations/{evaluation_id}' string name = 1; - // Options used in evaluation plan for creating the evaluation. + // Output only. Options used in the evaluation job that created this + // evaluation. EvaluationConfig config = 2; - // Output only. Timestamp when the evaluation plan triggered this evaluation - // flow. + // Output only. Timestamp for when the evaluation job that created this + // evaluation ran. google.protobuf.Timestamp evaluation_job_run_time = 3; - // Output only. Timestamp when this model evaluation was created. + // Output only. Timestamp for when this evaluation was created. google.protobuf.Timestamp create_time = 4; - // Output only. Metrics of the evaluation. + // Output only. Metrics comparing predictions to ground truth labels. EvaluationMetrics evaluation_metrics = 5; - // Type of the annotation to compute metrics for in the groundtruth and - // annotation labeled dataset. Required for creation. + // Output only. Type of task that the model version being evaluated performs, + // as defined in the + // + // [evaluationJobConfig.inputConfig.annotationType][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config] + // field of the evaluation job that created this evaluation. AnnotationType annotation_type = 6; - // Output only. Count of items in groundtruth dataset included in this - // evaluation. Will be unset if annotation type is not applicable. + // 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 + // AnnotationTypes. int64 evaluated_item_count = 7; } +// Configuration details used for calculating evaluation metrics and creating an +// [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation]. message EvaluationConfig { // Vertical specific options for general metrics. oneof vertical_option { + // Only specify this field if the related model performs image object + // detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate + // bounding boxes. BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; } } // Options regarding evaluation between bounding boxes. message BoundingBoxEvaluationOptions { - // Minimize IoU required to consider 2 bounding boxes are matched. + // Minimum + // [intersection-over-union + // + // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) + // required for 2 bounding boxes to be considered a match. This must be a + // number between 0 and 1. float iou_threshold = 1; } message EvaluationMetrics { - // Common metrics covering most genernal cases. + // Common metrics covering most general cases. oneof metrics { ClassificationMetrics classification_metrics = 1; @@ -78,13 +100,17 @@ message EvaluationMetrics { } } +// Metrics calculated for a classification model. message ClassificationMetrics { - // Precision-recall curve. + // Precision-recall curve based on ground truth labels, predicted labels, and + // scores for the predicted labels. PrCurve pr_curve = 1; + // Confusion matrix of predicted labels vs. ground truth labels. ConfusionMatrix confusion_matrix = 2; } +// Metrics calculated for an image object detection (bounding box) model. message ObjectDetectionMetrics { // Precision-recall curve. PrCurve pr_curve = 1; @@ -92,8 +118,18 @@ message ObjectDetectionMetrics { message PrCurve { message ConfidenceMetricsEntry { - // Threshold used for this entry, for example, IoU threshold for bounding - // box problem, or detection threshold for classification. + // Threshold used for this entry. + // + // For classification tasks, this is a classification threshold: a + // predicted label is categorized as positive or negative (in the context of + // this point on the PR curve) based on whether the label's score meets this + // threshold. + // + // For image object detection (bounding box) tasks, this is the + // [intersection-over-union + // + // (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) + // threshold for the context of this point on the PR curve. float confidence_threshold = 1; // Recall value. @@ -111,10 +147,7 @@ message PrCurve { // Precision value for entries with label that has highest score. float precision_at1 = 6; - // 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]. + // 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; // Recall value for entries with label that has highest 5 scores. @@ -123,43 +156,48 @@ message PrCurve { // Precision value for entries with label that has highest 5 scores. float precision_at5 = 9; - // 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]. + // 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; } - // PR curve against which annotation spec. Could be empty. + // The annotation spec of the label for which the precision-recall curve + // calculated. If this field is empty, that means the precision-recall curve + // is an aggregate curve for all labels. AnnotationSpec annotation_spec = 1; - // Area under precision recall curve. + // Area under the precision-recall curve. Not to be confused with area under + // a receiver operating characteristic (ROC) curve. float area_under_curve = 2; - // entries to draw PR graph. + // Entries that make up the precision-recall graph. Each entry is a "point" on + // the graph drawn for a different `confidence_threshold`. repeated ConfidenceMetricsEntry confidence_metrics_entries = 3; - // mean average prcision of this curve. + // Mean average prcision of this curve. float mean_average_precision = 4; } -// Confusion matrix of the model running the classification. Not applicable -// when label filtering is specified in evaluation option. +// Confusion matrix of the model running the classification. Only applicable +// when the metrics entry aggregates multiple labels. Not applicable when the +// entry is for a single label. message ConfusionMatrix { message ConfusionMatrixEntry { - // The predicted annotation spec. + // The annotation spec of a predicted label. AnnotationSpec annotation_spec = 1; - // Number of items being predicted as this label. + // 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; } - // A row in the confusion matrix. + // A row in the confusion matrix. Each entry in this row has the same + // ground truth label. message Row { - // the original annotation spec of this row. + // The annotation spec of the ground truth label for this row. AnnotationSpec annotation_spec = 1; - // Info describing predicted label distribution. + // A list of the confusion matrix entries. One entry for each possible + // predicted label. repeated ConfusionMatrixEntry entries = 2; } diff --git a/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 index ad642464..49270fee 100644 --- a/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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/dataset.proto"; import "google/cloud/datalabeling/v1beta1/evaluation.proto"; import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"; @@ -28,124 +29,244 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1 option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; -// Defines an evaluation job that is triggered periodically to generate -// evaluations. +// Defines an evaluation job that runs periodically to generate +// [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation +// job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point +// for using continuous evaluation. message EvaluationJob { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/EvaluationJob" + pattern: "projects/{project}/evaluationJobs/{evaluation_job}" + }; + // State of the job. enum State { 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 + // [delete][google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob] the job. + // + // When the job is in this state, it samples prediction input and output + // from your model version into your BigQuery table as predictions occur. SCHEDULED = 1; + // The job is currently running. When the job runs, Data Labeling Service + // does several things: + // + // 1. If you have configured your job to use Data Labeling Service for + // ground truth labeling, the service creates a + // [Dataset][google.cloud.datalabeling.v1beta1.Dataset] and a labeling task for all data sampled + // since the last time the job ran. Human labelers provide ground truth + // labels for your data. Human labeling may take hours, or even days, + // depending on how much data has been sampled. The job remains in the + // `RUNNING` state during this time, and it can even be running multiple + // times in parallel if it gets triggered again (for example 24 hours + // later) before the earlier run has completed. When human labelers have + // finished labeling the data, the next step occurs. + //

+ // If you have configured your job to provide your own ground truth + // labels, Data Labeling Service still creates a [Dataset][google.cloud.datalabeling.v1beta1.Dataset] for newly + // sampled data, but it expects that you have already added ground truth + // labels to the BigQuery table by this time. The next step occurs + // immediately. + // + // 2. Data Labeling Service creates an [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] by comparing your + // model version's predictions with the ground truth labels. + // + // If the job remains in this state for a long time, it continues to sample + // prediction data into your BigQuery table and will run again at the next + // interval, even if it causes the job to run multiple times in parallel. 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 + // [resume][google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob] the job. PAUSED = 3; + // The job has this state right before it is deleted. STOPPED = 4; } - // Format: 'projects/{project_id}/evaluationJobs/{evaluation_job_id}' + // Output only. After you create a job, Data Labeling Service assigns a name + // to the job with the following format: + // + // "projects/{project_id}/evaluationJobs/{evaluation_job_id}" string name = 1; - // Description of the job. The description can be up to - // 25000 characters long. + // Required. Description of the job. The description can be up to 25,000 + // characters long. string description = 2; + // Output only. Describes the current state of the job. State state = 3; - // Describes the schedule on which the job will be executed. Minimum schedule - // unit is 1 day. + // 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 + // you specify a 50-hour interval, the job runs every 2 days. // - // The schedule can be either of the following types: - // * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) - // * English-like + // You can provide the schedule in + // [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an + // [English-like + // format](/appengine/docs/standard/python/config/cronref#schedule_format). // - // [schedule](https: - // //cloud.google.com/scheduler/docs/configuring/cron-job-schedules) + // Regardless of what you specify, the job will run at 10:00 AM UTC. Only the + // interval from this schedule is used, not the specific time of day. string schedule = 4; - // The versioned model that is being evaluated here. - // Only one job is allowed for each model name. - // Format: 'projects/*/models/*/versions/*' + // Required. The [AI Platform Prediction model + // version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction + // input and output is sampled from this model version. When creating an + // evaluation job, specify the model version in the following format: + // + // "projects/{project_id}/models/{model_name}/versions/{version_name}" + // + // There can only be one evaluation job per model version. string model_version = 5; - // Detailed config for running this eval job. + // Required. Configuration details for the evaluation job. EvaluationJobConfig evaluation_job_config = 6; - // Name of the 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 + // resource before you create an evaluation job and provide its name in the + // following format: + // + // "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}" string annotation_spec_set = 7; - // If a human annotation should be requested when some data don't have ground - // truth. + // Required. Whether you want Data Labeling Service to provide ground truth + // labels for prediction input. If you want the service to assign human + // labelers to annotate your data, set this to `true`. If you want to provide + // your own ground truth labels in the evaluation job's BigQuery table, set + // this to `false`. bool label_missing_ground_truth = 8; - // Output only. Any attempts with errors happening in evaluation job runs each - // time will be recorded here incrementally. + // Output only. Every time the evaluation job runs and an error occurs, the + // failed attempt is appended to this array. repeated Attempt attempts = 9; - // Timestamp when this evaluation job was created. + // Output only. Timestamp of when this evaluation job was created. google.protobuf.Timestamp create_time = 10; } +// Configures specific details of how a continuous evaluation job works. Provide +// this configuration when you create an EvaluationJob. message EvaluationJobConfig { - // config specific to different supported human annotation use cases. + // Required. Details for how you want human reviewers to provide ground truth + // labels. oneof human_annotation_request_config { + // Specify this field if your model version performs image classification or + // general classification. + // + // `annotationSpecSet` in this configuration must match + // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set]. + // `allowMultiLabel` in this configuration must match + // `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]. ImageClassificationConfig image_classification_config = 4; + // Specify this field if your model version performs image object detection + // (bounding box detection). + // + // `annotationSpecSet` in this configuration must match + // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set]. BoundingPolyConfig bounding_poly_config = 5; - VideoClassificationConfig video_classification_config = 6; - - ObjectDetectionConfig object_detection_config = 7; - + // Specify this field if your model version performs text classification. + // + // `annotationSpecSet` in this configuration must match + // [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set]. + // `allowMultiLabel` in this configuration must match + // `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config]. TextClassificationConfig text_classification_config = 8; - - ObjectTrackingConfig object_tracking_config = 12; } - // Input config for data, gcs_source in the config will be the root path for - // data. Data should be organzied chronically under that path. + // Rquired. Details for the sampled prediction input. Within this + // configuration, there are requirements for several fields: + // + // * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`. + // * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`, + // `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`, + // or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection). + // * If your machine learning model performs classification, you must specify + // `classificationMetadata.isMultiLabel`. + // * You must specify `bigquerySource` (not `gcsSource`). InputConfig input_config = 1; - // Config used to create evaluation. + // Required. Details for calculating evaluation metrics and creating + // [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object + // detection, you must specify the `boundingBoxEvaluationOptions` field within + // this configuration. Otherwise, provide an empty object for this + // configuration. EvaluationConfig evaluation_config = 2; + // Optional. Details for human annotation of your data. If you set + // [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to + // `true` for this evaluation job, then you must specify this field. If you + // plan to provide your own ground truth labels, then omit this field. + // + // Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can + // specify this field. Provide the name of the instruction resource in the + // `instruction` field within this configuration. HumanAnnotationConfig human_annotation_config = 3; - // Mappings between reserved keys for bigquery import and customized tensor - // names. Key is the reserved key, value is tensor name in the bigquery table. - // Different annotation type has different required key mapping. See user - // manual for more details: + // Required. Prediction keys that tell Data Labeling Service where to find the + // data for evaluation in your BigQuery table. When the service samples + // prediction input and output from your model version and saves it to + // BigQuery, the data gets stored as JSON strings in the BigQuery table. These + // keys tell Data Labeling Service how to parse the JSON. + // + // You can provide the following entries in this field: + // + // * `data_json_key`: the data key for prediction input. You must provide + // either this key or `reference_json_key`. + // * `reference_json_key`: the data reference key for prediction input. You + // must provide either this key or `data_json_key`. + // * `label_json_key`: the label key for prediction output. Required. + // * `label_score_json_key`: the score key for prediction output. Required. + // * `bounding_box_json_key`: the bounding box key for prediction output. + // Required if your model version perform image object detection. // - // https: - // //docs.google.com/document/d/1bg1meMIBGY - // // 9I5QEoFoHSX6u9LsZQYBSmPt6E9SxqHZc/edit#heading=h.tfyjhxhvsqem + // Learn [how to configure prediction + // keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys). map bigquery_import_keys = 9; - // Max number of examples to collect in each period. + // Required. The maximum number of predictions to sample and save to BigQuery + // during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit + // overrides `example_sample_percentage`: even if the service has not sampled + // enough predictions to fulfill `example_sample_perecentage` during an + // interval, it stops sampling predictions when it meets this limit. int32 example_count = 10; - // Percentage of examples to collect in each period. 0.1 means 10% of total - // examples will be collected, and 0.0 means no collection. + // 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 + // 10% of predictions served by your model version get saved to BigQuery. double example_sample_percentage = 11; - // Alert config for the evaluation job. The alert will be triggered when its - // criteria is met. + // 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. EvaluationJobAlertConfig evaluation_job_alert_config = 13; } +// Provides details for how an evaluation job sends email alerts based on the +// results of a run. message EvaluationJobAlertConfig { - // Required. Email of the user who will be receiving the alert. + // Required. An email address to send alerts to. string email = 1; - // If a single evaluation run's aggregate mean average precision is - // lower than this threshold, the alert will be triggered. + // Required. A number between 0 and 1 that describes a minimum mean average + // precision threshold. When the evaluation job runs, if it calculates that + // your model version's predictions from the recent interval have + // [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this + // threshold, then it sends an alert to your specified email. double min_acceptable_mean_average_precision = 2; } -// Records a failed attempt. +// Records a failed evaluation job run. message Attempt { google.protobuf.Timestamp attempt_time = 1; + // Details of errors that occurred. repeated google.rpc.Status partial_failures = 2; } diff --git a/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 index 67f3c81e..5658bb9b 100644 --- a/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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; import "google/protobuf/duration.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling"; @@ -40,44 +41,44 @@ enum StringAggregationType { // Configuration for how human labeling task should be done. message HumanAnnotationConfig { // Required. Instruction resource name. - string instruction = 1; + string instruction = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A human-readable name for AnnotatedDataset defined by // users. Maximum of 64 characters // . - string annotated_dataset_display_name = 2; + string annotated_dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. A human-readable description for AnnotatedDataset. // The description can be up to 10000 characters long. - string annotated_dataset_description = 3; + string annotated_dataset_description = 3 [(google.api.field_behavior) = OPTIONAL]; // 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; + string label_group = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. The Language of this question, as a // [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). // Default value is en-US. // Only need to set this when task is language related. For example, French // text classification. - string language_code = 5; + string language_code = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. Replication of questions. Each question will be sent to up to // this number of contributors to label. Aggregated answers will be returned. // Default is set to 1. // For image related labeling, valid values are 1, 3, 5. - int32 replica_count = 6; + int32 replica_count = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Maximum duration for contributors to answer a question. Default - // is 1800 seconds. - google.protobuf.Duration question_duration = 7; + // 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]; // 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 // them access to the question types in crowdcompute. Note that these // emails must be registered in crowdcompute worker UI: // https://crowd-compute.appspot.com/ - repeated string contributor_emails = 9; + repeated string contributor_emails = 9 [(google.api.field_behavior) = OPTIONAL]; // Email of the user who started the labeling task and should be notified by // email. If empty no notification will be sent. @@ -87,39 +88,39 @@ message HumanAnnotationConfig { // Config for image classification human labeling task. message ImageClassificationConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. If allow_multi_label is true, contributors are able to choose // multiple labels for one image. - bool allow_multi_label = 2; + bool allow_multi_label = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The type of how to aggregate answers. - StringAggregationType answer_aggregation_type = 3; + StringAggregationType answer_aggregation_type = 3 [(google.api.field_behavior) = OPTIONAL]; } // Config for image bounding poly (and bounding box) human labeling task. message BoundingPolyConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Instruction message showed on contributors UI. - string instruction_message = 2; + string instruction_message = 2 [(google.api.field_behavior) = OPTIONAL]; } // Config for image polyline human labeling task. message PolylineConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Instruction message showed on contributors UI. - string instruction_message = 2; + string instruction_message = 2 [(google.api.field_behavior) = OPTIONAL]; } // Config for image segmentation message SegmentationConfig { // Required. Annotation spec set resource name. format: // projects/{project_id}/annotationSpecSets/{annotation_spec_set_id} - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Instruction message showed on labelers UI. string instruction_message = 2; @@ -134,11 +135,11 @@ message VideoClassificationConfig { // Annotation spec set with the setting of allowing multi labels or not. message AnnotationSpecSetConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. If allow_multi_label is true, contributors are able to // choose multiple labels from one annotation spec set. - bool allow_multi_label = 2; + bool allow_multi_label = 2 [(google.api.field_behavior) = OPTIONAL]; } // Required. The list of annotation spec set configs. @@ -147,10 +148,10 @@ message VideoClassificationConfig { // in each AnnotationSpecSet will be shown in a group to contributors. // Contributors can select one or more (depending on whether to allow multi // label) from each group. - repeated AnnotationSpecSetConfig annotation_spec_set_configs = 1; + repeated AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Option to apply shot detection on the video. - bool apply_shot_detection = 2; + bool apply_shot_detection = 2 [(google.api.field_behavior) = OPTIONAL]; } // Config for video object detection human labeling task. @@ -160,16 +161,16 @@ message VideoClassificationConfig { // extraction frame rate. message ObjectDetectionConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Number of frames per second to be extracted from the video. - double extraction_frame_rate = 3; + double extraction_frame_rate = 3 [(google.api.field_behavior) = REQUIRED]; } // Config for video object tracking human labeling task. message ObjectTrackingConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; } // Config for video event human labeling task. @@ -177,20 +178,20 @@ message EventConfig { // 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; + repeated string annotation_spec_sets = 1 [(google.api.field_behavior) = REQUIRED]; } // Config for text classification human labeling task. message TextClassificationConfig { // Optional. If allow_multi_label is true, contributors are able to choose // multiple labels for one text segment. - bool allow_multi_label = 1; + bool allow_multi_label = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. Annotation spec set resource name. - string annotation_spec_set = 2; + string annotation_spec_set = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. Configs for sentiment selection. - SentimentConfig sentiment_config = 3; + SentimentConfig sentiment_config = 3 [(google.api.field_behavior) = OPTIONAL]; } // Config for setting up sentiments. @@ -204,5 +205,5 @@ message SentimentConfig { // Config for text entity extraction human labeling task. message TextEntityExtractionConfig { // Required. Annotation spec set resource name. - string annotation_spec_set = 1; + string annotation_spec_set = 1 [(google.api.field_behavior) = REQUIRED]; } diff --git a/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 index 6cb7b50f..50839614 100644 --- a/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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/dataset.proto"; import "google/protobuf/timestamp.proto"; @@ -26,12 +27,13 @@ option java_multiple_files = true; option java_package = "com.google.cloud.datalabeling.v1beta1"; // Instruction of how to perform the labeling task for human operators. -// Currently two types of instruction are supported - CSV file and PDF. -// One of the two types instruction must be provided. -// CSV file is only supported for image classification task. Instructions for -// other task should be provided as PDF. -// For image classification, CSV and PDF can be provided at the same time. +// Currently only PDF instruction is supported. message Instruction { + option (google.api.resource) = { + type: "datalabeling.googleapis.com/Instruction" + pattern: "projects/{project}/instructions/{instruction}" + }; + // Output only. Instruction resource name, format: // projects/{project_id}/instructions/{instruction_id} string name = 1; @@ -52,15 +54,14 @@ message Instruction { // Required. The data type of this instruction. DataType data_type = 6; - // One of CSV or PDF instruction is required. + // Deprecated: this instruction format is not supported any more. // Instruction from a CSV file, such as for classification task. // The CSV file should have exact two columns, in the following format: // // * The first column is labeled data, such as an image reference, text. // * The second column is comma separated labels associated with data. - CsvInstruction csv_instruction = 7; + CsvInstruction csv_instruction = 7 [deprecated = true]; - // One of CSV or PDF instruction is required. // Instruction from a PDF document. The PDF should be in a Cloud Storage // bucket. PdfInstruction pdf_instruction = 9; @@ -70,6 +71,7 @@ message Instruction { repeated string blocking_resources = 10; } +// Deprecated: this instruction format is not supported any more. // Instruction from a CSV file. message CsvInstruction { // CSV file for the instruction. Only gcs path is allowed. diff --git a/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 index 80371d0e..7f069244 100644 --- a/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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.datalabeling.v1beta1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/cloud/datalabeling/v1beta1/dataset.proto"; import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto"; import "google/protobuf/timestamp.proto"; @@ -42,7 +43,7 @@ message ImportDataOperationResponse { // Response used for ExportDataset longrunning operation. message ExportDataOperationResponse { // Ouptut only. The name of dataset. - // "projects/*/datasets/*/Datasets/*" + // "projects/*/datasets/*" string dataset = 1; // Output only. Total number of examples requested to export @@ -60,7 +61,7 @@ message ExportDataOperationResponse { // Metadata of an ImportData operation. message ImportDataOperationMetadata { - // Ouptut only. The name of imported dataset. + // Output only. The name of imported dataset. // "projects/*/datasets/*" string dataset = 1; @@ -76,7 +77,7 @@ message ImportDataOperationMetadata { // Metadata of an ExportData operation. message ExportDataOperationMetadata { // Output only. The name of dataset to be exported. - // "projects/*/datasets/*/Datasets/*" + // "projects/*/datasets/*" string dataset = 1; // Output only. Partial failures encountered. @@ -89,7 +90,7 @@ message ExportDataOperationMetadata { } // Metadata of a labeling operation, such as LabelImage or LabelVideo. -// Next tag: 18 +// Next tag: 20 message LabelOperationMetadata { // Ouptut only. Details of specific label operation. oneof details { @@ -103,8 +104,7 @@ message LabelOperationMetadata { LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; // Details of label image oriented bounding box operation. - LabelImageOrientedBoundingBoxOperationMetadata - image_oriented_bounding_box_details = 14; + LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; // Details of label image polyline operation. LabelImagePolylineOperationMetadata image_polyline_details = 12; @@ -116,8 +116,7 @@ message LabelOperationMetadata { LabelVideoClassificationOperationMetadata video_classification_details = 5; // Details of label video object detection operation. - LabelVideoObjectDetectionOperationMetadata video_object_detection_details = - 6; + LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; // Details of label video object tracking operation. LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; @@ -129,8 +128,7 @@ message LabelOperationMetadata { LabelTextClassificationOperationMetadata text_classification_details = 9; // Details of label text entity extraction operation. - LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = - 13; + LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; } // Output only. Progress of label operation. Range: [0, 100]. diff --git a/renovate.json b/renovate.json index f3a70c97..a5cdff45 100644 --- a/renovate.json +++ b/renovate.json @@ -58,6 +58,12 @@ "^com.google.cloud:google-cloud-" ], "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" } ], "semanticCommits": true diff --git a/synth.metadata b/synth.metadata index cf7af18e..6e169937 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,18 +1,19 @@ { - "updateTime": "2020-01-23T22:47:21.100985Z", + "updateTime": "2020-01-29T08:48:17.815992Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.1", - "dockerImage": "googleapis/artman@sha256:5599b61e56a372d21b671969ee915fbca0f6c3a0daaeb898d01f8f685f1bbc8b" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "46a2d50dd05fe37104e5f66abaa59f6235a3d7c4" + "sha": "cf3b61102ed5f36b827bc82ec39be09525f018c8", + "internalRef": "292034635" } }, { @@ -51,6 +52,9 @@ { "path": ".github/release-please.yml" }, + { + "path": ".gitignore" + }, { "path": ".kokoro/build.bat" }, @@ -216,6 +220,12 @@ { "path": ".kokoro/trampoline.sh" }, + { + "path": ".repo-metadata.json" + }, + { + "path": "CHANGELOG.md" + }, { "path": "CODE_OF_CONDUCT.md" }, @@ -225,9 +235,18 @@ { "path": "LICENSE" }, + { + "path": "README.md" + }, { "path": "codecov.yaml" }, + { + "path": "google-cloud-datalabeling-bom/pom.xml" + }, + { + "path": "google-cloud-datalabeling/pom.xml" + }, { "path": "google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java" }, @@ -258,6 +277,12 @@ { "path": "google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java" }, + { + "path": "google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/it/ITSystemTest.java" + }, + { + "path": "grpc-google-cloud-datalabeling-v1beta1/pom.xml" + }, { "path": "grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java" }, @@ -267,6 +292,12 @@ { "path": "license-checks.xml" }, + { + "path": "pom.xml" + }, + { + "path": "proto-google-cloud-datalabeling-v1beta1/pom.xml" + }, { "path": "proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java" }, @@ -1151,6 +1182,15 @@ }, { "path": "renovate.json" + }, + { + "path": "synth.metadata" + }, + { + "path": "synth.py" + }, + { + "path": "versions.txt" } ] } \ No newline at end of file