Class IntentBatch.Builder (4.55.0)

public static final class IntentBatch.Builder extends GeneratedMessageV3.Builder<IntentBatch.Builder> implements IntentBatchOrBuilder

This message is a wrapper around a collection of intents.

Protobuf type google.cloud.dialogflow.v2beta1.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.v2beta1.Intent intents = 1;

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

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
Returns
Type Description
IntentBatch.Builder

addIntents(Intent.Builder builderForValue)

public IntentBatch.Builder addIntents(Intent.Builder builderForValue)

A collection of intents.

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

Parameter
Name Description
index int
Returns
Type Description
Intent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IntentBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IntentBatch.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public IntentBatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IntentBatch.Builder
Overrides

clearIntents()

public IntentBatch.Builder clearIntents()

A collection of intents.

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

Returns
Type Description
IntentBatch.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IntentBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IntentBatch.Builder
Overrides

clone()

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

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.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
Returns
Type Description
Intent.Builder

getIntentsBuilderList()

public List<Intent.Builder> getIntentsBuilderList()

A collection of intents.

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

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<Intent>

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
Returns
Type Description
IntentOrBuilder

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IntentBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IntentBatch.Builder
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
Returns
Type Description
IntentBatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IntentBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IntentBatch.Builder
Overrides

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
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.v2beta1.Intent intents = 1;

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IntentBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IntentBatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IntentBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IntentBatch.Builder
Overrides