Class GenerativeInfo.Builder (0.52.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
TypeDescription
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
NameDescription
valuesIterable<String>

The currentPlaybooks to add.

Returns
TypeDescription
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
NameDescription
valueString

The currentPlaybooks to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the currentPlaybooks to add.

Returns
TypeDescription
GenerativeInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerativeInfo build()
Returns
TypeDescription
GenerativeInfo

buildPartial()

public GenerativeInfo buildPartial()
Returns
TypeDescription
GenerativeInfo

clear()

public GenerativeInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GenerativeInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GenerativeInfo.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the currentPlaybooks.

getDefaultInstanceForType()

public GenerativeInfo getDefaultInstanceForType()
Returns
TypeDescription
GenerativeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the actionTracingInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueExample
Returns
TypeDescription
GenerativeInfo.Builder

mergeFrom(GenerativeInfo other)

public GenerativeInfo.Builder mergeFrom(GenerativeInfo other)
Parameter
NameDescription
otherGenerativeInfo
Returns
TypeDescription
GenerativeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The currentPlaybooks to set.

Returns
TypeDescription
GenerativeInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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