Class IntentBatch.Builder (4.100.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class IntentBatch.Builder extends GeneratedMessage.Builder<IntentBatch.Builder> implements IntentBatchOrBuilder
This message is a wrapper around a collection of intents.
Protobuf type google.cloud.dialogflow.v2beta1.IntentBatch
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllIntents(Iterable<? extends Intent> values)
public IntentBatch.Builder addAllIntents(Iterable<? extends Intent> values)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent>
|
addIntents(Intent value)
public IntentBatch.Builder addIntents(Intent value)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
value |
Intent
|
addIntents(Intent.Builder builderForValue)
public IntentBatch.Builder addIntents(Intent.Builder builderForValue)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntents(int index, Intent value)
public IntentBatch.Builder addIntents(int index, Intent value)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameters |
| Name |
Description |
index |
int
|
value |
Intent
|
addIntents(int index, Intent.Builder builderForValue)
public IntentBatch.Builder addIntents(int index, Intent.Builder builderForValue)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntentsBuilder()
public Intent.Builder addIntentsBuilder()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntentsBuilder(int index)
public Intent.Builder addIntentsBuilder(int index)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public IntentBatch build()
buildPartial()
public IntentBatch buildPartial()
clear()
public IntentBatch.Builder clear()
Overrides
clearIntents()
public IntentBatch.Builder clearIntents()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
getDefaultInstanceForType()
public IntentBatch getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getIntents(int index)
public Intent getIntents(int index)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Intent |
|
getIntentsBuilder(int index)
public Intent.Builder getIntentsBuilder(int index)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
index |
int
|
getIntentsBuilderList()
public List<Intent.Builder> getIntentsBuilderList()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
getIntentsCount()
public int getIntentsCount()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Returns |
| Type |
Description |
int |
|
getIntentsList()
public List<Intent> getIntentsList()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
getIntentsOrBuilder(int index)
public IntentOrBuilder getIntentsOrBuilder(int index)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
index |
int
|
getIntentsOrBuilderList()
public List<? extends IntentOrBuilder> getIntentsOrBuilderList()
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.IntentOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(IntentBatch other)
public IntentBatch.Builder mergeFrom(IntentBatch other)
public IntentBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public IntentBatch.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeIntents(int index)
public IntentBatch.Builder removeIntents(int index)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameter |
| Name |
Description |
index |
int
|
setIntents(int index, Intent value)
public IntentBatch.Builder setIntents(int index, Intent value)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
| Parameters |
| Name |
Description |
index |
int
|
value |
Intent
|
setIntents(int index, Intent.Builder builderForValue)
public IntentBatch.Builder setIntents(int index, Intent.Builder builderForValue)
A collection of intents.
repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
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 2026-07-31 UTC.
[null,null,["Last updated 2026-07-31 UTC."],[],[]]