Class IntentBatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IntentBatch.Builder>
com.google.cloud.dialogflow.v2.IntentBatch.Builder
All Implemented Interfaces:
IntentBatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IntentBatch

public static final class IntentBatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<IntentBatch.Builder> implements IntentBatchOrBuilder
 This message is a wrapper around a collection of intents.
 
Protobuf type google.cloud.dialogflow.v2.IntentBatch
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IntentBatch.Builder>
    • clear

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

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

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

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

      public IntentBatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IntentBatch.Builder>
    • mergeFrom

      public IntentBatch.Builder mergeFrom(IntentBatch other)
    • isInitialized

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

      public IntentBatch.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<IntentBatch.Builder>
      Throws:
      IOException
    • getIntentsList

      public List<Intent> getIntentsList()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
      Specified by:
      getIntentsList in interface IntentBatchOrBuilder
    • getIntentsCount

      public int getIntentsCount()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
      Specified by:
      getIntentsCount in interface IntentBatchOrBuilder
    • getIntents

      public Intent getIntents(int index)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
      Specified by:
      getIntents in interface IntentBatchOrBuilder
    • setIntents

      public IntentBatch.Builder setIntents(int index, Intent value)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • setIntents

      public IntentBatch.Builder setIntents(int index, Intent.Builder builderForValue)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addIntents

      public IntentBatch.Builder addIntents(Intent value)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addIntents

      public IntentBatch.Builder addIntents(int index, Intent value)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addIntents

      public IntentBatch.Builder addIntents(Intent.Builder builderForValue)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addIntents

      public IntentBatch.Builder addIntents(int index, Intent.Builder builderForValue)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addAllIntents

      public IntentBatch.Builder addAllIntents(Iterable<? extends Intent> values)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • clearIntents

      public IntentBatch.Builder clearIntents()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • removeIntents

      public IntentBatch.Builder removeIntents(int index)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • getIntentsBuilder

      public Intent.Builder getIntentsBuilder(int index)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • getIntentsOrBuilder

      public IntentOrBuilder getIntentsOrBuilder(int index)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
      Specified by:
      getIntentsOrBuilder in interface IntentBatchOrBuilder
    • getIntentsOrBuilderList

      public List<? extends IntentOrBuilder> getIntentsOrBuilderList()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
      Specified by:
      getIntentsOrBuilderList in interface IntentBatchOrBuilder
    • addIntentsBuilder

      public Intent.Builder addIntentsBuilder()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • addIntentsBuilder

      public Intent.Builder addIntentsBuilder(int index)
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;
    • getIntentsBuilderList

      public List<Intent.Builder> getIntentsBuilderList()
       A collection of intents.
       
      repeated .google.cloud.dialogflow.v2.Intent intents = 1;