Class Intent.TrainingPhrase.Part.Builder (0.14.7) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.14.7keyboard_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.v3beta1.Intent.TrainingPhrase.Part
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      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 ()  
  Returns 
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
    
public   Intent . TrainingPhrase . Part   build ()  
  Returns 
  
  buildPartial() 
  
    
public   Intent . TrainingPhrase . Part   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  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;
Returns 
  
  clearText() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clearText ()  
   Required. The text for this part.
 string text = 1 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  clone() 
  
    
public   Intent . TrainingPhrase . Part . Builder   clone ()  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Intent . TrainingPhrase . Part   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  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 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  mergeFrom(Intent.TrainingPhrase.Part other) 
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( Intent . TrainingPhrase . Part   other )  
  Parameter 
  
  Returns 
  
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message other) 
  
    
public   Intent . TrainingPhrase . Part . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Intent . TrainingPhrase . Part . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  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  
      
        value String The parameterId to set.
 
     
  
  Returns 
  
  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  
      
        value ByteString The bytes for parameterId to set.
 
     
  
  Returns 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   Intent . TrainingPhrase . Part . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  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  
      
        value String The text to set.
 
     
  
  Returns 
  
  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  
      
        value ByteString The bytes for text to set.
 
     
  
  Returns 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Intent . TrainingPhrase . Part . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  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."],[],[]]