Class Config.Builder

  • All Implemented Interfaces:
    ConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Config

    public static final class Config.Builder
    extends com.google.protobuf.GeneratedMessageV3.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • clear

        public Config.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • getDefaultInstanceForType

        public Config getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Config build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Config buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Config.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • setField

        public Config.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • clearField

        public Config.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • clearOneof

        public Config.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • setRepeatedField

        public Config.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • addRepeatedField

        public Config.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • mergeFrom

        public Config.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • mergeFrom

        public Config.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>
        Throws:
        IOException
      • getName

        public String 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`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         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`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ConfigOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Config.Builder setName​(String value)
         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`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Config.Builder clearName()
         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`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Config.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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`.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getKmsKeyName

        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) = { ... }
        Specified by:
        getKmsKeyName in interface ConfigOrBuilder
        Returns:
        The kmsKeyName.
      • getKmsKeyNameBytes

        public 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) = { ... }
        Specified by:
        getKmsKeyNameBytes in interface ConfigOrBuilder
        Returns:
        The bytes for kmsKeyName.
      • setKmsKeyName

        public 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) = { ... }
        Parameters:
        value - The kmsKeyName to set.
        Returns:
        This builder for chaining.
      • clearKmsKeyName

        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) = { ... }
        Returns:
        This builder for chaining.
      • setKmsKeyNameBytes

        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) = { ... }
        Parameters:
        value - The bytes for kmsKeyName to set.
        Returns:
        This builder for chaining.
      • hasUpdateTime

        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];
        Specified by:
        hasUpdateTime in interface ConfigOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public 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];
        Specified by:
        getUpdateTime in interface ConfigOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public 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];
      • setUpdateTime

        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];
      • mergeUpdateTime

        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];
      • clearUpdateTime

        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];
      • getUpdateTimeBuilder

        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];
      • getUpdateTimeOrBuilder

        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];
        Specified by:
        getUpdateTimeOrBuilder in interface ConfigOrBuilder
      • setUnknownFields

        public final Config.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • mergeUnknownFields

        public final Config.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>