Class Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
      • getDefaultInstanceForType

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

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

        public Intent.TrainingPhrase.Part buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
        Throws:
        IOException
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         Required. The text for this part.
         
        string text = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTextBytes in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The bytes for text.
      • setText

        public Intent.TrainingPhrase.Part.Builder setText​(String value)
         Required. The text for this part.
         
        string text = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • clearText

        public Intent.TrainingPhrase.Part.Builder clearText()
         Required. The text for this part.
         
        string text = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setTextBytes

        public Intent.TrainingPhrase.Part.Builder setTextBytes​(com.google.protobuf.ByteString value)
         Required. The text for this part.
         
        string text = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for text to set.
        Returns:
        This builder for chaining.
      • getParameterId

        public String getParameterId()
         The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter]
         used to annotate this part of the training phrase. This field is
         required for annotated parts of the training phrase.
         
        string parameter_id = 2;
        Specified by:
        getParameterId in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The parameterId.
      • getParameterIdBytes

        public com.google.protobuf.ByteString getParameterIdBytes()
         The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter]
         used to annotate this part of the training phrase. This field is
         required for annotated parts of the training phrase.
         
        string parameter_id = 2;
        Specified by:
        getParameterIdBytes in interface Intent.TrainingPhrase.PartOrBuilder
        Returns:
        The bytes for parameterId.
      • setParameterId

        public Intent.TrainingPhrase.Part.Builder setParameterId​(String value)
         The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter]
         used to annotate this part of the training phrase. This field is
         required for annotated parts of the training phrase.
         
        string parameter_id = 2;
        Parameters:
        value - The parameterId to set.
        Returns:
        This builder for chaining.
      • clearParameterId

        public Intent.TrainingPhrase.Part.Builder clearParameterId()
         The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter]
         used to annotate this part of the training phrase. This field is
         required for annotated parts of the training phrase.
         
        string parameter_id = 2;
        Returns:
        This builder for chaining.
      • setParameterIdBytes

        public Intent.TrainingPhrase.Part.Builder setParameterIdBytes​(com.google.protobuf.ByteString value)
         The [parameter][google.cloud.dialogflow.cx.v3beta1.Intent.Parameter]
         used to annotate this part of the training phrase. This field is
         required for annotated parts of the training phrase.
         
        string parameter_id = 2;
        Parameters:
        value - The bytes for parameterId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>
      • mergeUnknownFields

        public final Intent.TrainingPhrase.Part.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<Intent.TrainingPhrase.Part.Builder>