Reference documentation and code samples for the Cloud Speech V2 Client class Config.
Message representing the config for the Speech-to-Text API. This includes an optional KMS key with which incoming data will be encrypted.
Generated from protobuf message google.cloud.speech.v2.Config
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. The name of the config resource. There is exactly one config resource per project per location. The expected format is |
↳ kms_key_name |
string
Optional. An optional KMS key name that if present, will be used to encrypt Speech-to-Text resources at-rest. Updating this key will not encrypt existing resources using this key; only new resources will be encrypted using this key. The expected format is |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The most recent time this resource was modified. |
getName
Output only. The name of the config resource. There is exactly one config
resource per project per location. The expected format is
projects/{project}/locations/{location}/config
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
string |
setName
Output only. The name of the config resource. There is exactly one config
resource per project per location. The expected format is
projects/{project}/locations/{location}/config
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getKmsKeyName
Optional. An optional KMS key
name that if
present, will be used to encrypt Speech-to-Text resources at-rest. Updating
this key will not encrypt existing resources using this key; only new
resources will be encrypted using this key. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
Generated from protobuf field string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setKmsKeyName
Optional. An optional KMS key
name that if
present, will be used to encrypt Speech-to-Text resources at-rest. Updating
this key will not encrypt existing resources using this key; only new
resources will be encrypted using this key. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
.
Generated from protobuf field string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUpdateTime
Output only. The most recent time this resource was modified.
Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The most recent time this resource was modified.
Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |