Class IntentBatch.Builder (4.7.5)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.Intent>
Returns
TypeDescription
IntentBatch.Builder

addIntents(Intent value)

public IntentBatch.Builder addIntents(Intent value)

A collection of intents.

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

Parameter
NameDescription
valueIntent
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueIntent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Builder
Returns
TypeDescription
IntentBatch.Builder

addIntentsBuilder()

public Intent.Builder addIntentsBuilder()

A collection of intents.

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

Returns
TypeDescription
Intent.Builder

addIntentsBuilder(int index)

public Intent.Builder addIntentsBuilder(int index)

A collection of intents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IntentBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IntentBatch.Builder
Overrides

build()

public IntentBatch build()
Returns
TypeDescription
IntentBatch

buildPartial()

public IntentBatch buildPartial()
Returns
TypeDescription
IntentBatch

clear()

public IntentBatch.Builder clear()
Returns
TypeDescription
IntentBatch.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public IntentBatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IntentBatch.Builder
Overrides

clearIntents()

public IntentBatch.Builder clearIntents()

A collection of intents.

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

Returns
TypeDescription
IntentBatch.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public IntentBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IntentBatch.Builder
Overrides

clone()

public IntentBatch.Builder clone()
Returns
TypeDescription
IntentBatch.Builder
Overrides

getDefaultInstanceForType()

public IntentBatch getDefaultInstanceForType()
Returns
TypeDescription
IntentBatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntents(int index)

public Intent getIntents(int index)

A collection of intents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent

getIntentsBuilder(int index)

public Intent.Builder getIntentsBuilder(int index)

A collection of intents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Builder

getIntentsBuilderList()

public List<Intent.Builder> getIntentsBuilderList()

A collection of intents.

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

Returns
TypeDescription
List<Builder>

getIntentsCount()

public int getIntentsCount()

A collection of intents.

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

Returns
TypeDescription
int

getIntentsList()

public List<Intent> getIntentsList()

A collection of intents.

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

Returns
TypeDescription
List<Intent>

getIntentsOrBuilder(int index)

public IntentOrBuilder getIntentsOrBuilder(int index)

A collection of intents.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IntentOrBuilder

getIntentsOrBuilderList()

public List<? extends IntentOrBuilder> getIntentsOrBuilderList()

A collection of intents.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IntentBatch other)

public IntentBatch.Builder mergeFrom(IntentBatch other)
Parameter
NameDescription
otherIntentBatch
Returns
TypeDescription
IntentBatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IntentBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IntentBatch.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IntentBatch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IntentBatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IntentBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
IntentBatch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public IntentBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IntentBatch.Builder
Overrides

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
NameDescription
indexint
valueIntent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Builder
Returns
TypeDescription
IntentBatch.Builder

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

public IntentBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IntentBatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IntentBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IntentBatch.Builder
Overrides