@@ -16,14 +16,23 @@ syntax = "proto3";
1616
1717package google.cloud.speech.v1p1beta1 ;
1818
19+ import "google/api/field_behavior.proto" ;
1920import "google/api/resource.proto" ;
21+ import "google/protobuf/timestamp.proto" ;
2022
21- option cc_enable_arenas = true ;
2223option go_package = "cloud.google.com/go/speech/apiv1p1beta1/speechpb;speechpb" ;
2324option java_multiple_files = true ;
2425option java_outer_classname = "SpeechResourceProto" ;
2526option java_package = "com.google.cloud.speech.v1p1beta1" ;
2627option objc_class_prefix = "GCS" ;
28+ option (google.api.resource_definition ) = {
29+ type : "cloudkms.googleapis.com/CryptoKey"
30+ pattern : "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"
31+ };
32+ option (google.api.resource_definition ) = {
33+ type : "cloudkms.googleapis.com/CryptoKeyVersion"
34+ pattern : "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}"
35+ };
2736
2837// A set of words or phrases that represents a common concept likely to appear
2938// in your audio, for example a list of passenger ship names. CustomClass items
@@ -40,6 +49,19 @@ message CustomClass {
4049 string value = 1 ;
4150 }
4251
52+ // Set of states that define the lifecycle of a CustomClass.
53+ enum State {
54+ // Unspecified state. This is only used/useful for distinguishing
55+ // unset values.
56+ STATE_UNSPECIFIED = 0 ;
57+
58+ // The normal and active state.
59+ ACTIVE = 2 ;
60+
61+ // This CustomClass has been deleted.
62+ DELETED = 4 ;
63+ }
64+
4365 // The resource name of the custom class.
4466 string name = 1 ;
4567
@@ -49,6 +71,67 @@ message CustomClass {
4971
5072 // A collection of class items.
5173 repeated ClassItem items = 3 ;
74+
75+ // Output only. The [KMS key
76+ // name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
77+ // the content of the ClassItem is encrypted. The expected format is
78+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
79+ string kms_key_name = 6 [
80+ (google.api.field_behavior ) = OUTPUT_ONLY ,
81+ (google.api.resource_reference ) = {
82+ type : "cloudkms.googleapis.com/CryptoKey"
83+ }
84+ ];
85+
86+ // Output only. The [KMS key version
87+ // name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
88+ // with which content of the ClassItem is encrypted. The expected format is
89+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
90+ string kms_key_version_name = 7 [
91+ (google.api.field_behavior ) = OUTPUT_ONLY ,
92+ (google.api.resource_reference ) = {
93+ type : "cloudkms.googleapis.com/CryptoKeyVersion"
94+ }
95+ ];
96+
97+ // Output only. System-assigned unique identifier for the CustomClass.
98+ // This field is not used.
99+ string uid = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
100+
101+ // Output only. User-settable, human-readable name for the CustomClass. Must
102+ // be 63 characters or less. This field is not used.
103+ string display_name = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
104+
105+ // Output only. The CustomClass lifecycle state.
106+ // This field is not used.
107+ State state = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
108+
109+ // Output only. The time at which this resource was requested for deletion.
110+ // This field is not used.
111+ google.protobuf.Timestamp delete_time = 11
112+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
113+
114+ // Output only. The time at which this resource will be purged.
115+ // This field is not used.
116+ google.protobuf.Timestamp expire_time = 12
117+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
118+
119+ // Output only. Allows users to store small amounts of arbitrary data.
120+ // Both the key and the value must be 63 characters or less each.
121+ // At most 100 annotations.
122+ // This field is not used.
123+ map <string , string > annotations = 13
124+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
125+
126+ // Output only. This checksum is computed by the server based on the value of
127+ // other fields. This may be sent on update, undelete, and delete requests to
128+ // ensure the client has an up-to-date value before proceeding. This field is
129+ // not used.
130+ string etag = 14 [(google.api.field_behavior ) = OUTPUT_ONLY ];
131+
132+ // Output only. Whether or not this CustomClass is in the process of being
133+ // updated. This field is not used.
134+ bool reconciling = 15 [(google.api.field_behavior ) = OUTPUT_ONLY ];
52135}
53136
54137// Provides "hints" to the speech recognizer to favor specific words and phrases
@@ -100,6 +183,19 @@ message PhraseSet {
100183 float boost = 2 ;
101184 }
102185
186+ // Set of states that define the lifecycle of a CustomClass.
187+ enum State {
188+ // Unspecified state. This is only used/useful for distinguishing
189+ // unset values.
190+ STATE_UNSPECIFIED = 0 ;
191+
192+ // The normal and active state.
193+ ACTIVE = 2 ;
194+
195+ // This CustomClass has been deleted.
196+ DELETED = 4 ;
197+ }
198+
103199 // The resource name of the phrase set.
104200 string name = 1 ;
105201
@@ -116,6 +212,67 @@ message PhraseSet {
116212 // approach to finding the optimal value for your use case as well as adding
117213 // phrases both with and without boost to your requests.
118214 float boost = 4 ;
215+
216+ // Output only. The [KMS key
217+ // name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
218+ // the content of the PhraseSet is encrypted. The expected format is
219+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
220+ string kms_key_name = 7 [
221+ (google.api.field_behavior ) = OUTPUT_ONLY ,
222+ (google.api.resource_reference ) = {
223+ type : "cloudkms.googleapis.com/CryptoKey"
224+ }
225+ ];
226+
227+ // Output only. The [KMS key version
228+ // name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
229+ // with which content of the PhraseSet is encrypted. The expected format is
230+ // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
231+ string kms_key_version_name = 8 [
232+ (google.api.field_behavior ) = OUTPUT_ONLY ,
233+ (google.api.resource_reference ) = {
234+ type : "cloudkms.googleapis.com/CryptoKeyVersion"
235+ }
236+ ];
237+
238+ // Output only. System-assigned unique identifier for the PhraseSet.
239+ // This field is not used.
240+ string uid = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
241+
242+ // Output only. User-settable, human-readable name for the PhraseSet. Must be
243+ // 63 characters or less. This field is not used.
244+ string display_name = 10 [(google.api.field_behavior ) = OUTPUT_ONLY ];
245+
246+ // Output only. The CustomClass lifecycle state.
247+ // This field is not used.
248+ State state = 11 [(google.api.field_behavior ) = OUTPUT_ONLY ];
249+
250+ // Output only. The time at which this resource was requested for deletion.
251+ // This field is not used.
252+ google.protobuf.Timestamp delete_time = 12
253+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
254+
255+ // Output only. The time at which this resource will be purged.
256+ // This field is not used.
257+ google.protobuf.Timestamp expire_time = 13
258+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
259+
260+ // Output only. Allows users to store small amounts of arbitrary data.
261+ // Both the key and the value must be 63 characters or less each.
262+ // At most 100 annotations.
263+ // This field is not used.
264+ map <string , string > annotations = 14
265+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
266+
267+ // Output only. This checksum is computed by the server based on the value of
268+ // other fields. This may be sent on update, undelete, and delete requests to
269+ // ensure the client has an up-to-date value before proceeding. This field is
270+ // not used.
271+ string etag = 15 [(google.api.field_behavior ) = OUTPUT_ONLY ];
272+
273+ // Output only. Whether or not this PhraseSet is in the process of being
274+ // updated. This field is not used.
275+ bool reconciling = 16 [(google.api.field_behavior ) = OUTPUT_ONLY ];
119276}
120277
121278// Speech adaptation configuration.
0 commit comments