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
      • getParent

        public String getParent()
         Required. The parent resource where this phrase set will be created.
         Format:
        
         `projects/{project}/locations/{location}`
        
         Speech-to-Text supports three locations: `global`, `us` (US North America),
         and `eu` (Europe). If you are calling the `speech.googleapis.com`
         endpoint, use the `global` location. To specify a region, use a
         [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this phrase set will be created.
         Format:
        
         `projects/{project}/locations/{location}`
        
         Speech-to-Text supports three locations: `global`, `us` (US North America),
         and `eu` (Europe). If you are calling the `speech.googleapis.com`
         endpoint, use the `global` location. To specify a region, use a
         [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this phrase set will be created.
         Format:
        
         `projects/{project}/locations/{location}`
        
         Speech-to-Text supports three locations: `global`, `us` (US North America),
         and `eu` (Europe). If you are calling the `speech.googleapis.com`
         endpoint, use the `global` location. To specify a region, use a
         [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this phrase set will be created.
         Format:
        
         `projects/{project}/locations/{location}`
        
         Speech-to-Text supports three locations: `global`, `us` (US North America),
         and `eu` (Europe). If you are calling the `speech.googleapis.com`
         endpoint, use the `global` location. To specify a region, use a
         [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this phrase set will be created.
         Format:
        
         `projects/{project}/locations/{location}`
        
         Speech-to-Text supports three locations: `global`, `us` (US North America),
         and `eu` (Europe). If you are calling the `speech.googleapis.com`
         endpoint, use the `global` location. To specify a region, use a
         [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getPhraseSetId

        public String getPhraseSetId()
         Required. The ID to use for the phrase set, which will become the final
         component of the phrase set's resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPhraseSetId in interface CreatePhraseSetRequestOrBuilder
        Returns:
        The phraseSetId.
      • getPhraseSetIdBytes

        public com.google.protobuf.ByteString getPhraseSetIdBytes()
         Required. The ID to use for the phrase set, which will become the final
         component of the phrase set's resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPhraseSetIdBytes in interface CreatePhraseSetRequestOrBuilder
        Returns:
        The bytes for phraseSetId.
      • setPhraseSetId

        public CreatePhraseSetRequest.Builder setPhraseSetId​(String value)
         Required. The ID to use for the phrase set, which will become the final
         component of the phrase set's resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The phraseSetId to set.
        Returns:
        This builder for chaining.
      • clearPhraseSetId

        public CreatePhraseSetRequest.Builder clearPhraseSetId()
         Required. The ID to use for the phrase set, which will become the final
         component of the phrase set's resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPhraseSetIdBytes

        public CreatePhraseSetRequest.Builder setPhraseSetIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID to use for the phrase set, which will become the final
         component of the phrase set's resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for phraseSetId to set.
        Returns:
        This builder for chaining.
      • hasPhraseSet

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

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

        public CreatePhraseSetRequest.Builder setPhraseSet​(PhraseSet value)
         Required. The phrase set to create.
         
        .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      • setPhraseSet

        public CreatePhraseSetRequest.Builder setPhraseSet​(PhraseSet.Builder builderForValue)
         Required. The phrase set to create.
         
        .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergePhraseSet

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

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

        public PhraseSet.Builder getPhraseSetBuilder()
         Required. The phrase set to create.
         
        .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      • 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>