Class QueryExtensionResponse.Builder (3.55.0)

public static final class QueryExtensionResponse.Builder extends GeneratedMessageV3.Builder<QueryExtensionResponse.Builder> implements QueryExtensionResponseOrBuilder

Response message for ExtensionExecutionService.QueryExtension.

Protobuf type google.cloud.aiplatform.v1beta1.QueryExtensionResponse

Static Methods

getDescriptor()

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

Methods

addAllSteps(Iterable<? extends Content> values)

public QueryExtensionResponse.Builder addAllSteps(Iterable<? extends Content> values)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
Returns
Type Description
QueryExtensionResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSteps(Content value)

public QueryExtensionResponse.Builder addSteps(Content value)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
value Content
Returns
Type Description
QueryExtensionResponse.Builder

addSteps(Content.Builder builderForValue)

public QueryExtensionResponse.Builder addSteps(Content.Builder builderForValue)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
QueryExtensionResponse.Builder

addSteps(int index, Content value)

public QueryExtensionResponse.Builder addSteps(int index, Content value)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameters
Name Description
index int
value Content
Returns
Type Description
QueryExtensionResponse.Builder

addSteps(int index, Content.Builder builderForValue)

public QueryExtensionResponse.Builder addSteps(int index, Content.Builder builderForValue)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
QueryExtensionResponse.Builder

addStepsBuilder()

public Content.Builder addStepsBuilder()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
Content.Builder

addStepsBuilder(int index)

public Content.Builder addStepsBuilder(int index)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

build()

public QueryExtensionResponse build()
Returns
Type Description
QueryExtensionResponse

buildPartial()

public QueryExtensionResponse buildPartial()
Returns
Type Description
QueryExtensionResponse

clear()

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

clearFailureMessage()

public QueryExtensionResponse.Builder clearFailureMessage()

Failure message if any.

string failure_message = 2;

Returns
Type Description
QueryExtensionResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSteps()

public QueryExtensionResponse.Builder clearSteps()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
QueryExtensionResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryExtensionResponse getDefaultInstanceForType()
Returns
Type Description
QueryExtensionResponse

getDescriptorForType()

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

getFailureMessage()

public String getFailureMessage()

Failure message if any.

string failure_message = 2;

Returns
Type Description
String

The failureMessage.

getFailureMessageBytes()

public ByteString getFailureMessageBytes()

Failure message if any.

string failure_message = 2;

Returns
Type Description
ByteString

The bytes for failureMessage.

getSteps(int index)

public Content getSteps(int index)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
index int
Returns
Type Description
Content

getStepsBuilder(int index)

public Content.Builder getStepsBuilder(int index)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

getStepsBuilderList()

public List<Content.Builder> getStepsBuilderList()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
List<Builder>

getStepsCount()

public int getStepsCount()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
int

getStepsList()

public List<Content> getStepsList()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
List<Content>

getStepsOrBuilder(int index)

public ContentOrBuilder getStepsOrBuilder(int index)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentOrBuilder

getStepsOrBuilderList()

public List<? extends ContentOrBuilder> getStepsOrBuilderList()

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryExtensionResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSteps(int index)

public QueryExtensionResponse.Builder removeSteps(int index)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameter
Name Description
index int
Returns
Type Description
QueryExtensionResponse.Builder

setFailureMessage(String value)

public QueryExtensionResponse.Builder setFailureMessage(String value)

Failure message if any.

string failure_message = 2;

Parameter
Name Description
value String

The failureMessage to set.

Returns
Type Description
QueryExtensionResponse.Builder

This builder for chaining.

setFailureMessageBytes(ByteString value)

public QueryExtensionResponse.Builder setFailureMessageBytes(ByteString value)

Failure message if any.

string failure_message = 2;

Parameter
Name Description
value ByteString

The bytes for failureMessage to set.

Returns
Type Description
QueryExtensionResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSteps(int index, Content value)

public QueryExtensionResponse.Builder setSteps(int index, Content value)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameters
Name Description
index int
value Content
Returns
Type Description
QueryExtensionResponse.Builder

setSteps(int index, Content.Builder builderForValue)

public QueryExtensionResponse.Builder setSteps(int index, Content.Builder builderForValue)

Steps of extension or LLM interaction, can contain function call, function response, or text response. The last step contains the final response to the query.

repeated .google.cloud.aiplatform.v1beta1.Content steps = 1;

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
QueryExtensionResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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