Class Intent.TrainingPhrase.Part.Builder (0.87.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.87.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Intent . TrainingPhrase . Part . Builder   extends   GeneratedMessageV3 . Builder<Intent . TrainingPhrase . Part . Builder >  implements   Intent . TrainingPhrase . PartOrBuilder  
   Represents a part of a training phrase.
 Protobuf type google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   Intent . TrainingPhrase . Part   build ()  
  
  buildPartial() 
  
    
public   Intent . TrainingPhrase . Part   buildPartial ()  
  
  clear() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearParameterId() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearParameterId ()  
   The 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;
clearText() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearText ()  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
clone() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Intent . TrainingPhrase . Part   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getParameterId() 
  
    
public   String   getParameterId ()  
   The 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  
      
        Type Description  
      
        String The parameterId.
 
     
  
  getParameterIdBytes() 
  
    
public   ByteString   getParameterIdBytes ()  
   The 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  
      
        Type Description  
      
        ByteString The bytes for parameterId.
 
     
  
  getText() 
  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The text.
 
     
  
  getTextBytes() 
  
    
public   ByteString   getTextBytes ()  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for text.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(Intent.TrainingPhrase.Part other) 
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( Intent . TrainingPhrase . Part   other )  
  
  
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Intent . TrainingPhrase . Part . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setParameterId(String value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setParameterId ( String   value )  
   The 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;
    
      
        Parameter  
      
        Name Description  
      
        valueString The parameterId to set.
 
     
  
  
  setParameterIdBytes(ByteString value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setParameterIdBytes ( ByteString   value )  
   The 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;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for parameterId to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setText(String value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setText ( String   value )  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueString The text to set.
 
     
  
  
  setTextBytes(ByteString value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setTextBytes ( ByteString   value )  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for text to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Intent . TrainingPhrase . Part . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]