Class IntentBatch.Builder (4.89.0)

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.v2.IntentBatch

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllIntents(Iterable<? extends Intent> values)

public IntentBatch.Builder addAllIntents(Iterable<? extends Intent> values)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.Intent>
Returns
Type Description
IntentBatch.Builder

addIntents(Intent value)

public IntentBatch.Builder addIntents(Intent value)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
value Intent
Returns
Type Description
IntentBatch.Builder

addIntents(Intent.Builder builderForValue)

public IntentBatch.Builder addIntents(Intent.Builder builderForValue)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
builderForValue Intent.Builder
Returns
Type Description
IntentBatch.Builder

addIntents(int index, Intent value)

public IntentBatch.Builder addIntents(int index, Intent value)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameters
Name Description
index int
value Intent
Returns
Type Description
IntentBatch.Builder

addIntents(int index, Intent.Builder builderForValue)

public IntentBatch.Builder addIntents(int index, Intent.Builder builderForValue)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameters
Name Description
index int
builderForValue Intent.Builder
Returns
Type Description
IntentBatch.Builder

addIntentsBuilder()

public Intent.Builder addIntentsBuilder()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
Intent.Builder

addIntentsBuilder(int index)

public Intent.Builder addIntentsBuilder(int index)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Builder

build()

public IntentBatch build()
Returns
Type Description
IntentBatch

buildPartial()

public IntentBatch buildPartial()
Returns
Type Description
IntentBatch

clear()

public IntentBatch.Builder clear()
Returns
Type Description
IntentBatch.Builder
Overrides

clearIntents()

public IntentBatch.Builder clearIntents()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
IntentBatch.Builder

getDefaultInstanceForType()

public IntentBatch getDefaultInstanceForType()
Returns
Type Description
IntentBatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIntents(int index)

public Intent getIntents(int index)

A collection of intents.

repeated .google.cloud.dialogflow.v2.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.v2.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
Intent.Builder

getIntentsBuilderList()

public List<Intent.Builder> getIntentsBuilderList()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
List<Builder>

getIntentsCount()

public int getIntentsCount()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
int

getIntentsList()

public List<Intent> getIntentsList()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
List<Intent>

getIntentsOrBuilder(int index)

public IntentOrBuilder getIntentsOrBuilder(int index)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentOrBuilder

getIntentsOrBuilderList()

public List<? extends IntentOrBuilder> getIntentsOrBuilderList()

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.IntentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IntentBatch other)

public IntentBatch.Builder mergeFrom(IntentBatch other)
Parameter
Name Description
other IntentBatch
Returns
Type Description
IntentBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IntentBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IntentBatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IntentBatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IntentBatch.Builder
Overrides

removeIntents(int index)

public IntentBatch.Builder removeIntents(int index)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentBatch.Builder

setIntents(int index, Intent value)

public IntentBatch.Builder setIntents(int index, Intent value)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameters
Name Description
index int
value Intent
Returns
Type Description
IntentBatch.Builder

setIntents(int index, Intent.Builder builderForValue)

public IntentBatch.Builder setIntents(int index, Intent.Builder builderForValue)

A collection of intents.

repeated .google.cloud.dialogflow.v2.Intent intents = 1;

Parameters
Name Description
index int
builderForValue Intent.Builder
Returns
Type Description
IntentBatch.Builder