Class QueryExtensionResponse.Builder (3.40.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
Returns
TypeDescription
QueryExtensionResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryExtensionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueContent
Returns
TypeDescription
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
NameDescription
builderForValueContent.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContent.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Content.Builder

build()

public QueryExtensionResponse build()
Returns
TypeDescription
QueryExtensionResponse

buildPartial()

public QueryExtensionResponse buildPartial()
Returns
TypeDescription
QueryExtensionResponse

clear()

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

clearFailureMessage()

public QueryExtensionResponse.Builder clearFailureMessage()

Failure message if any.

string failure_message = 2;

Returns
TypeDescription
QueryExtensionResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryExtensionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
QueryExtensionResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryExtensionResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryExtensionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFailureMessage()

public String getFailureMessage()

Failure message if any.

string failure_message = 2;

Returns
TypeDescription
String

The failureMessage.

getFailureMessageBytes()

public ByteString getFailureMessageBytes()

Failure message if any.

string failure_message = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueryExtensionResponse other)

public QueryExtensionResponse.Builder mergeFrom(QueryExtensionResponse other)
Parameter
NameDescription
otherQueryExtensionResponse
Returns
TypeDescription
QueryExtensionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFailureMessage(String value)

public QueryExtensionResponse.Builder setFailureMessage(String value)

Failure message if any.

string failure_message = 2;

Parameter
NameDescription
valueString

The failureMessage to set.

Returns
TypeDescription
QueryExtensionResponse.Builder

This builder for chaining.

setFailureMessageBytes(ByteString value)

public QueryExtensionResponse.Builder setFailureMessageBytes(ByteString value)

Failure message if any.

string failure_message = 2;

Parameter
NameDescription
valueByteString

The bytes for failureMessage to set.

Returns
TypeDescription
QueryExtensionResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public QueryExtensionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueContent
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContent.Builder
Returns
TypeDescription
QueryExtensionResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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