Class GenerativeInfo.Builder (0.54.0)

public static final class GenerativeInfo.Builder extends GeneratedMessageV3.Builder<GenerativeInfo.Builder> implements GenerativeInfoOrBuilder

Represents the information of a query if handled by generative agent resources.

Protobuf type google.cloud.dialogflow.cx.v3beta1.GenerativeInfo

Static Methods

getDescriptor()

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

Methods

addAllCurrentPlaybooks(Iterable<String> values)

public GenerativeInfo.Builder addAllCurrentPlaybooks(Iterable<String> values)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameter
Name Description
values Iterable<String>

The currentPlaybooks to add.

Returns
Type Description
GenerativeInfo.Builder

This builder for chaining.

addCurrentPlaybooks(String value)

public GenerativeInfo.Builder addCurrentPlaybooks(String value)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameter
Name Description
value String

The currentPlaybooks to add.

Returns
Type Description
GenerativeInfo.Builder

This builder for chaining.

addCurrentPlaybooksBytes(ByteString value)

public GenerativeInfo.Builder addCurrentPlaybooksBytes(ByteString value)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameter
Name Description
value ByteString

The bytes of the currentPlaybooks to add.

Returns
Type Description
GenerativeInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerativeInfo build()
Returns
Type Description
GenerativeInfo

buildPartial()

public GenerativeInfo buildPartial()
Returns
Type Description
GenerativeInfo

clear()

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

clearActionTracingInfo()

public GenerativeInfo.Builder clearActionTracingInfo()

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Returns
Type Description
GenerativeInfo.Builder

clearCurrentPlaybooks()

public GenerativeInfo.Builder clearCurrentPlaybooks()

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Returns
Type Description
GenerativeInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getActionTracingInfo()

public Example getActionTracingInfo()

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Returns
Type Description
Example

The actionTracingInfo.

getActionTracingInfoBuilder()

public Example.Builder getActionTracingInfoBuilder()

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Returns
Type Description
Example.Builder

getActionTracingInfoOrBuilder()

public ExampleOrBuilder getActionTracingInfoOrBuilder()

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Returns
Type Description
ExampleOrBuilder

getCurrentPlaybooks(int index)

public String getCurrentPlaybooks(int index)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The currentPlaybooks at the given index.

getCurrentPlaybooksBytes(int index)

public ByteString getCurrentPlaybooksBytes(int index)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the currentPlaybooks at the given index.

getCurrentPlaybooksCount()

public int getCurrentPlaybooksCount()

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Returns
Type Description
int

The count of currentPlaybooks.

getCurrentPlaybooksList()

public ProtocolStringList getCurrentPlaybooksList()

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Returns
Type Description
ProtocolStringList

A list containing the currentPlaybooks.

getDefaultInstanceForType()

public GenerativeInfo getDefaultInstanceForType()
Returns
Type Description
GenerativeInfo

getDescriptorForType()

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

hasActionTracingInfo()

public boolean hasActionTracingInfo()

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Returns
Type Description
boolean

Whether the actionTracingInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeActionTracingInfo(Example value)

public GenerativeInfo.Builder mergeActionTracingInfo(Example value)

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Parameter
Name Description
value Example
Returns
Type Description
GenerativeInfo.Builder

mergeFrom(GenerativeInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerativeInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerativeInfo.Builder
Overrides

setActionTracingInfo(Example value)

public GenerativeInfo.Builder setActionTracingInfo(Example value)

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Parameter
Name Description
value Example
Returns
Type Description
GenerativeInfo.Builder

setActionTracingInfo(Example.Builder builderForValue)

public GenerativeInfo.Builder setActionTracingInfo(Example.Builder builderForValue)

The actions performed by the generative playbook for the current agent response.

.google.cloud.dialogflow.cx.v3beta1.Example action_tracing_info = 2;

Parameter
Name Description
builderForValue Example.Builder
Returns
Type Description
GenerativeInfo.Builder

setCurrentPlaybooks(int index, String value)

public GenerativeInfo.Builder setCurrentPlaybooks(int index, String value)

The stack of playbooks that the conversation has currently entered, with the most recent one on the top.

repeated string current_playbooks = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The currentPlaybooks to set.

Returns
Type Description
GenerativeInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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