public static final class Config.Builder extends com.google.protobuf.GeneratedMessage.Builder<Config.Builder> implements ConfigOrBuilder
Message representing the config for the Speech-to-Text API. This includes an optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which incoming data will be encrypted.Protobuf type
google.cloud.speech.v2.Config| Modifier and Type | Method and Description |
|---|---|
Config |
build() |
Config |
buildPartial() |
Config.Builder |
clear() |
Config.Builder |
clearKmsKeyName()
Optional.
|
Config.Builder |
clearName()
Output only.
|
Config.Builder |
clearUpdateTime()
Output only.
|
Config |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKmsKeyName()
Optional.
|
com.google.protobuf.ByteString |
getKmsKeyNameBytes()
Optional.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Config.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Config.Builder |
mergeFrom(Config other) |
Config.Builder |
mergeFrom(com.google.protobuf.Message other) |
Config.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Config.Builder |
setKmsKeyName(String value)
Optional.
|
Config.Builder |
setKmsKeyNameBytes(com.google.protobuf.ByteString value)
Optional.
|
Config.Builder |
setName(String value)
Output only.
|
Config.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Config.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Config.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Config.Builder>public Config.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Config.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Config.Builder>public Config getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Config build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Config buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Config.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>public Config.Builder mergeFrom(Config other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Config.Builder>public Config.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>IOExceptionpublic String getName()
Output only. Identifier. 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`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
getName in interface ConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Identifier. 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`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
getNameBytes in interface ConfigOrBuilderpublic Config.Builder setName(String value)
Output only. Identifier. 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`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
value - The name to set.public Config.Builder clearName()
Output only. Identifier. 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`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
public Config.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Identifier. 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`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
value - The bytes for name to set.public String getKmsKeyName()
Optional. An optional [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) 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}`.
string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getKmsKeyName in interface ConfigOrBuilderpublic com.google.protobuf.ByteString getKmsKeyNameBytes()
Optional. An optional [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) 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}`.
string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getKmsKeyNameBytes in interface ConfigOrBuilderpublic Config.Builder setKmsKeyName(String value)
Optional. An optional [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) 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}`.
string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value - The kmsKeyName to set.public Config.Builder clearKmsKeyName()
Optional. An optional [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) 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}`.
string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
public Config.Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value)
Optional. An optional [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) 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}`.
string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value - The bytes for kmsKeyName to set.public boolean hasUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface ConfigOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface ConfigOrBuilderpublic Config.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Config.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Config.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Config.Builder clearUpdateTime()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The most recent time this resource was modified.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface ConfigOrBuilderCopyright © 2026 Google LLC. All rights reserved.