Skip to content

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 0a82dc8 commit 7a8af1b
Show file tree
Hide file tree
Showing 12 changed files with 32,023 additions and 410 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

8,828 changes: 8,828 additions & 0 deletions packages/google-cloud-speech/protos/protos.d.ts

Large diffs are not rendered by default.

22,666 changes: 22,666 additions & 0 deletions packages/google-cloud-speech/protos/protos.js

Large diffs are not rendered by default.

139 changes: 117 additions & 22 deletions packages/google-cloud-speech/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 7a8af1b

Please sign in to comment.