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

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

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

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

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

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

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

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

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

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

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

        public CreatePhraseSetRequest.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<CreatePhraseSetRequest.Builder>
        Throws:
        IOException
      • hasPhraseSet

        public boolean hasPhraseSet()
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPhraseSet in interface CreatePhraseSetRequestOrBuilder
        Returns:
        Whether the phraseSet field is set.
      • getPhraseSet

        public PhraseSet getPhraseSet()
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPhraseSet in interface CreatePhraseSetRequestOrBuilder
        Returns:
        The phraseSet.
      • setPhraseSet

        public CreatePhraseSetRequest.Builder setPhraseSet​(PhraseSet value)
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergePhraseSet

        public CreatePhraseSetRequest.Builder mergePhraseSet​(PhraseSet value)
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearPhraseSet

        public CreatePhraseSetRequest.Builder clearPhraseSet()
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      • getPhraseSetBuilder

        public PhraseSet.Builder getPhraseSetBuilder()
         Required. The PhraseSet to create.
         
        .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      • getValidateOnly

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

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

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

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

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

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

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

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

        public String getParent()
         Required. The project and location where this PhraseSet 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 CreatePhraseSetRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The project and location where this PhraseSet 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 CreatePhraseSetRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreatePhraseSetRequest.Builder setParent​(String value)
         Required. The project and location where this PhraseSet 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 CreatePhraseSetRequest.Builder clearParent()
         Required. The project and location where this PhraseSet 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 CreatePhraseSetRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The project and location where this PhraseSet 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 CreatePhraseSetRequest.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<CreatePhraseSetRequest.Builder>
      • mergeUnknownFields

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