Class CreateRecognizerRequest.Builder

    • 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<CreateRecognizerRequest.Builder>
      • clear

        public CreateRecognizerRequest.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<CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • clearField

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • clearOneof

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • setRepeatedField

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • addRepeatedField

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • isInitialized

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

        public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
        Throws:
        IOException
      • hasRecognizer

        public boolean hasRecognizer()
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasRecognizer in interface CreateRecognizerRequestOrBuilder
        Returns:
        Whether the recognizer field is set.
      • getRecognizer

        public Recognizer getRecognizer()
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRecognizer in interface CreateRecognizerRequestOrBuilder
        Returns:
        The recognizer.
      • setRecognizer

        public CreateRecognizerRequest.Builder setRecognizer​(Recognizer value)
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeRecognizer

        public CreateRecognizerRequest.Builder mergeRecognizer​(Recognizer value)
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearRecognizer

        public CreateRecognizerRequest.Builder clearRecognizer()
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      • getRecognizerBuilder

        public Recognizer.Builder getRecognizerBuilder()
         Required. The Recognizer to create.
         
        .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      • getValidateOnly

        public boolean getValidateOnly()
         If set, validate the request and preview the Recognizer, but do not
         actually create it.
         
        bool validate_only = 2;
        Specified by:
        getValidateOnly in interface CreateRecognizerRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public CreateRecognizerRequest.Builder setValidateOnly​(boolean value)
         If set, validate the request and preview the Recognizer, but do not
         actually create it.
         
        bool validate_only = 2;
        Parameters:
        value - The validateOnly to set.
        Returns:
        This builder for chaining.
      • clearValidateOnly

        public CreateRecognizerRequest.Builder clearValidateOnly()
         If set, validate the request and preview the Recognizer, but do not
         actually create it.
         
        bool validate_only = 2;
        Returns:
        This builder for chaining.
      • getRecognizerId

        public String getRecognizerId()
         The ID to use for the Recognizer, which will become the final component of
         the Recognizer's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-/.
         
        string recognizer_id = 3;
        Specified by:
        getRecognizerId in interface CreateRecognizerRequestOrBuilder
        Returns:
        The recognizerId.
      • getRecognizerIdBytes

        public com.google.protobuf.ByteString getRecognizerIdBytes()
         The ID to use for the Recognizer, which will become the final component of
         the Recognizer's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-/.
         
        string recognizer_id = 3;
        Specified by:
        getRecognizerIdBytes in interface CreateRecognizerRequestOrBuilder
        Returns:
        The bytes for recognizerId.
      • setRecognizerId

        public CreateRecognizerRequest.Builder setRecognizerId​(String value)
         The ID to use for the Recognizer, which will become the final component of
         the Recognizer's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-/.
         
        string recognizer_id = 3;
        Parameters:
        value - The recognizerId to set.
        Returns:
        This builder for chaining.
      • clearRecognizerId

        public CreateRecognizerRequest.Builder clearRecognizerId()
         The ID to use for the Recognizer, which will become the final component of
         the Recognizer's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-/.
         
        string recognizer_id = 3;
        Returns:
        This builder for chaining.
      • setRecognizerIdBytes

        public CreateRecognizerRequest.Builder setRecognizerIdBytes​(com.google.protobuf.ByteString value)
         The ID to use for the Recognizer, which will become the final component of
         the Recognizer's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-/.
         
        string recognizer_id = 3;
        Parameters:
        value - The bytes for recognizerId to set.
        Returns:
        This builder for chaining.
      • getParent

        public String getParent()
         Required. The project and location where this Recognizer will be created.
         The expected format is `projects/{project}/locations/{location}`.
         
        string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateRecognizerRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The project and location where this Recognizer will be created.
         The expected format is `projects/{project}/locations/{location}`.
         
        string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateRecognizerRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateRecognizerRequest.Builder setParent​(String value)
         Required. The project and location where this Recognizer will be created.
         The expected format is `projects/{project}/locations/{location}`.
         
        string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateRecognizerRequest.Builder clearParent()
         Required. The project and location where this Recognizer will be created.
         The expected format is `projects/{project}/locations/{location}`.
         
        string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateRecognizerRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The project and location where this Recognizer will be created.
         The expected format is `projects/{project}/locations/{location}`.
         
        string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      • mergeUnknownFields

        public final CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>