Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
chore: updated proto annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 9, 2019
1 parent fb8adb6 commit 2193b58
Show file tree
Hide file tree
Showing 13 changed files with 32,024 additions and 411 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/{{metadata['repo']['name']}}/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/nodejs-speech/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Expand Down
217 changes: 117 additions & 100 deletions protos/google/cloud/speech/v1/cloud_speech.proto

Large diffs are not rendered by default.

214 changes: 109 additions & 105 deletions protos/google/cloud/speech/v1p1beta1/cloud_speech.proto

Large diffs are not rendered by default.

8,828 changes: 8,828 additions & 0 deletions protos/protos.d.ts

Large diffs are not rendered by default.

22,666 changes: 22,666 additions & 0 deletions protos/protos.js

Large diffs are not rendered by default.

139 changes: 117 additions & 22 deletions protos/protos.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,34 @@
"go_package": "google.golang.org/genproto/googleapis/cloud/speech/v1;speech",
"java_multiple_files": true,
"java_outer_classname": "SpeechProto",
"java_package": "com.google.cloud.speech.v1"
"java_package": "com.google.cloud.speech.v1",
"objc_class_prefix": "GCS"
},
"nested": {
"Speech": {
"options": {
"(google.api.default_host)": "speech.googleapis.com",
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
},
"methods": {
"Recognize": {
"requestType": "RecognizeRequest",
"responseType": "RecognizeResponse",
"options": {
"(google.api.http).post": "/v1/speech:recognize",
"(google.api.http).body": "*"
"(google.api.http).body": "*",
"(google.api.method_signature)": "config,audio"
}
},
"LongRunningRecognize": {
"requestType": "LongRunningRecognizeRequest",
"responseType": "google.longrunning.Operation",
"options": {
"(google.api.http).post": "/v1/speech:longrunningrecognize",
"(google.api.http).body": "*"
"(google.api.http).body": "*",
"(google.api.method_signature)": "config,audio",
"(google.longrunning.operation_info).response_type": "LongRunningRecognizeResponse",
"(google.longrunning.operation_info).metadata_type": "LongRunningRecognizeMetadata"
}
},
"StreamingRecognize": {
Expand All @@ -45,23 +54,35 @@
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"audio": {
"type": "RecognitionAudio",
"id": 2
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"LongRunningRecognizeRequest": {
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"audio": {
"type": "RecognitionAudio",
"id": 2
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
Expand Down Expand Up @@ -89,7 +110,10 @@
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"singleUtterance": {
"type": "bool",
Expand Down Expand Up @@ -121,7 +145,10 @@
},
"languageCode": {
"type": "string",
"id": 3
"id": 3,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"maxAlternatives": {
"type": "int32",
Expand Down Expand Up @@ -192,7 +219,10 @@
},
"speakerTag": {
"type": "int32",
"id": 5
"id": 5,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
}
},
Expand Down Expand Up @@ -386,7 +416,10 @@
},
"languageCode": {
"type": "string",
"id": 6
"id": 6,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
}
},
Expand Down Expand Up @@ -444,25 +477,34 @@
"go_package": "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech",
"java_multiple_files": true,
"java_outer_classname": "SpeechProto",
"java_package": "com.google.cloud.speech.v1p1beta1"
"java_package": "com.google.cloud.speech.v1p1beta1",
"objc_class_prefix": "GCS"
},
"nested": {
"Speech": {
"options": {
"(google.api.default_host)": "speech.googleapis.com",
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform"
},
"methods": {
"Recognize": {
"requestType": "RecognizeRequest",
"responseType": "RecognizeResponse",
"options": {
"(google.api.http).post": "/v1p1beta1/speech:recognize",
"(google.api.http).body": "*"
"(google.api.http).body": "*",
"(google.api.method_signature)": "config,audio"
}
},
"LongRunningRecognize": {
"requestType": "LongRunningRecognizeRequest",
"responseType": "google.longrunning.Operation",
"options": {
"(google.api.http).post": "/v1p1beta1/speech:longrunningrecognize",
"(google.api.http).body": "*"
"(google.api.http).body": "*",
"(google.api.method_signature)": "config,audio",
"(google.longrunning.operation_info).response_type": "LongRunningRecognizeResponse",
"(google.longrunning.operation_info).metadata_type": "LongRunningRecognizeMetadata"
}
},
"StreamingRecognize": {
Expand All @@ -477,23 +519,35 @@
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"audio": {
"type": "RecognitionAudio",
"id": 2
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
"LongRunningRecognizeRequest": {
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"audio": {
"type": "RecognitionAudio",
"id": 2
"id": 2,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
},
Expand Down Expand Up @@ -521,7 +575,10 @@
"fields": {
"config": {
"type": "RecognitionConfig",
"id": 1
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"singleUtterance": {
"type": "bool",
Expand Down Expand Up @@ -553,7 +610,10 @@
},
"languageCode": {
"type": "string",
"id": 3
"id": 3,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"alternativeLanguageCodes": {
"rule": "repeated",
Expand Down Expand Up @@ -680,7 +740,10 @@
},
"obfuscatedId": {
"type": "int64",
"id": 9
"id": 9,
"options": {
"deprecated": true
}
},
"audioTopic": {
"type": "string",
Expand Down Expand Up @@ -918,7 +981,7 @@
"options": {
"go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations",
"java_multiple_files": true,
"java_outer_classname": "HttpProto",
"java_outer_classname": "FieldBehaviorProto",
"java_package": "com.google.api",
"objc_class_prefix": "GAPI",
"cc_enable_arenas": true
Expand Down Expand Up @@ -1010,6 +1073,38 @@
"id": 2
}
}
},
"methodSignature": {
"rule": "repeated",
"type": "string",
"id": 1051,
"extend": "google.protobuf.MethodOptions"
},
"defaultHost": {
"type": "string",
"id": 1049,
"extend": "google.protobuf.ServiceOptions"
},
"oauthScopes": {
"type": "string",
"id": 1050,
"extend": "google.protobuf.ServiceOptions"
},
"fieldBehavior": {
"rule": "repeated",
"type": "google.api.FieldBehavior",
"id": 1052,
"extend": "google.protobuf.FieldOptions"
},
"FieldBehavior": {
"values": {
"FIELD_BEHAVIOR_UNSPECIFIED": 0,
"OPTIONAL": 1,
"REQUIRED": 2,
"OUTPUT_ONLY": 3,
"INPUT_ONLY": 4,
"IMMUTABLE": 5
}
}
}
},
Expand Down
Loading

0 comments on commit 2193b58

Please sign in to comment.