Class AgentCoachingSuggestion.Sources.Builder (4.89.0)

public static final class AgentCoachingSuggestion.Sources.Builder extends GeneratedMessage.Builder<AgentCoachingSuggestion.Sources.Builder> implements AgentCoachingSuggestion.SourcesOrBuilder

Sources for the suggestion.

Protobuf type google.cloud.dialogflow.v2beta1.AgentCoachingSuggestion.Sources

Static Methods

getDescriptor()

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

Methods

addAllInstructionIndexes(Iterable<? extends Integer> values)

public AgentCoachingSuggestion.Sources.Builder addAllInstructionIndexes(Iterable<? extends Integer> values)

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends java.lang.Integer>

The instructionIndexes to add.

Returns
Type Description
AgentCoachingSuggestion.Sources.Builder

This builder for chaining.

addInstructionIndexes(int value)

public AgentCoachingSuggestion.Sources.Builder addInstructionIndexes(int value)

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The instructionIndexes to add.

Returns
Type Description
AgentCoachingSuggestion.Sources.Builder

This builder for chaining.

build()

public AgentCoachingSuggestion.Sources build()
Returns
Type Description
AgentCoachingSuggestion.Sources

buildPartial()

public AgentCoachingSuggestion.Sources buildPartial()
Returns
Type Description
AgentCoachingSuggestion.Sources

clear()

public AgentCoachingSuggestion.Sources.Builder clear()
Returns
Type Description
AgentCoachingSuggestion.Sources.Builder
Overrides

clearInstructionIndexes()

public AgentCoachingSuggestion.Sources.Builder clearInstructionIndexes()

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentCoachingSuggestion.Sources.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentCoachingSuggestion.Sources getDefaultInstanceForType()
Returns
Type Description
AgentCoachingSuggestion.Sources

getDescriptorForType()

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

getInstructionIndexes(int index)

public int getInstructionIndexes(int index)

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The instructionIndexes at the given index.

getInstructionIndexesCount()

public int getInstructionIndexesCount()

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of instructionIndexes.

getInstructionIndexesList()

public List<Integer> getInstructionIndexesList()

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the instructionIndexes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentCoachingSuggestion.Sources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setInstructionIndexes(int index, int value)

public AgentCoachingSuggestion.Sources.Builder setInstructionIndexes(int index, int value)

Output only. Source instruction indexes for the suggestion. This is the index of the applicable_instructions field.

repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

The instructionIndexes to set.

Returns
Type Description
AgentCoachingSuggestion.Sources.Builder

This builder for chaining.