Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
build: adds additional namespaces to protos
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Nov 13, 2020
1 parent 6bcb17b commit a0a2389
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 5 deletions.
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/annotation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
import "google/protobuf/duration.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Specifies where the annotation comes from (whether it was provided by a
// human labeler or a different source).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ package google.cloud.datalabeling.v1beta1;
import "google/api/annotations.proto";
import "google/api/resource.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// An AnnotationSpecSet is a collection of label definitions. For example, in
// image classification tasks, you define a set of possible labels for images as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Service for the AI Platform Data Labeling API.
service DataLabelingService {
option (google.api.default_host) = "datalabeling.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/data_payloads.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ import "google/api/annotations.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Container of information about an image.
message ImagePayload {
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/dataset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ import "google/cloud/datalabeling/v1beta1/data_payloads.proto";
import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

enum DataType {
DATA_TYPE_UNSPECIFIED = 0;
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/evaluation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ import "google/cloud/datalabeling/v1beta1/annotation.proto";
import "google/cloud/datalabeling/v1beta1/annotation_spec_set.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Describes an evaluation between a machine learning model's predictions and
// ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/evaluation_job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Defines an evaluation job that runs periodically to generate
// [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/protobuf/duration.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

enum StringAggregationType {
STRING_AGGREGATION_TYPE_UNSPECIFIED = 0;
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/instruction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ import "google/api/resource.proto";
import "google/cloud/datalabeling/v1beta1/dataset.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Instruction of how to perform the labeling task for human operators.
// Currently only PDF instruction is supported.
Expand Down
3 changes: 3 additions & 0 deletions protos/google/cloud/datalabeling/v1beta1/operations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ import "google/cloud/datalabeling/v1beta1/human_annotation_config.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";

option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
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";
option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
option ruby_package = "Google::Cloud::DataLabeling::V1beta1";

// Response used for ImportData longrunning operation.
message ImportDataOperationResponse {
Expand Down
5 changes: 4 additions & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/v1beta1/data_labeling_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {operationsProtos} from 'google-gax';
const version = require('../../../package.json').version;

/**
* Service for the AI Platform Data Labeling API.
* @class
* @memberof v1beta1
*/
Expand Down
14 changes: 10 additions & 4 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
{
"git": {
"name": ".",
"remote": "git@github.com:googleapis/nodejs-datalabeling.git",
"sha": "317c722bc888c11f57819cd8e02babd988dad2de"
"remote": "https://github.com/googleapis/nodejs-datalabeling.git",
"sha": "6bcb17b6cc40cbc2448e8722e8918324ae2261e4"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "836f0eaf5f21f300f63ac635e5ef263d183e0cdd",
"internalRef": "342188199"
}
},
{
Expand Down Expand Up @@ -79,7 +87,6 @@
"README.md",
"api-extractor.json",
"linkinator.config.json",
"package-lock.json.2707288343",
"protos/google/cloud/datalabeling/v1beta1/annotation.proto",
"protos/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto",
"protos/google/cloud/datalabeling/v1beta1/data_labeling_service.proto",
Expand All @@ -95,7 +102,6 @@
"protos/protos.json",
"renovate.json",
"samples/README.md",
"samples/package-lock.json.1329949583",
"src/index.ts",
"src/v1beta1/data_labeling_service_client.ts",
"src/v1beta1/data_labeling_service_client_config.json",
Expand Down

0 comments on commit a0a2389

Please sign in to comment.