public static final class FunctionResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder> implements FunctionResponseOrBuilder
The result output from a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall] made based on model prediction.Protobuf type
google.cloud.aiplatform.v1.FunctionResponseaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>public FunctionResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>public FunctionResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FunctionResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FunctionResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FunctionResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionResponse.Builder>public FunctionResponse.Builder mergeFrom(FunctionResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>public FunctionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionResponse.Builder>IOExceptionpublic String getName()
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface FunctionResponseOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface FunctionResponseOrBuilderpublic FunctionResponse.Builder setName(String value)
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public FunctionResponse.Builder clearName()
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];public FunctionResponse.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public boolean hasResponse()
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];hasResponse in interface FunctionResponseOrBuilderpublic com.google.protobuf.Struct getResponse()
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];getResponse in interface FunctionResponseOrBuilderpublic FunctionResponse.Builder setResponse(com.google.protobuf.Struct value)
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];public FunctionResponse.Builder setResponse(com.google.protobuf.Struct.Builder builderForValue)
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];public FunctionResponse.Builder mergeResponse(com.google.protobuf.Struct value)
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];public FunctionResponse.Builder clearResponse()
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];public com.google.protobuf.Struct.Builder getResponseBuilder()
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];public com.google.protobuf.StructOrBuilder getResponseOrBuilder()
Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];getResponseOrBuilder in interface FunctionResponseOrBuilderpublic List<FunctionResponsePart> getPartsList()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
getPartsList in interface FunctionResponseOrBuilderpublic int getPartsCount()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
getPartsCount in interface FunctionResponseOrBuilderpublic FunctionResponsePart getParts(int index)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
getParts in interface FunctionResponseOrBuilderpublic FunctionResponse.Builder setParts(int index, FunctionResponsePart value)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder setParts(int index, FunctionResponsePart.Builder builderForValue)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder addParts(FunctionResponsePart value)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder addParts(int index, FunctionResponsePart value)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder addParts(FunctionResponsePart.Builder builderForValue)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder addParts(int index, FunctionResponsePart.Builder builderForValue)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder addAllParts(Iterable<? extends FunctionResponsePart> values)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder clearParts()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponse.Builder removeParts(int index)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponsePart.Builder getPartsBuilder(int index)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponsePartOrBuilder getPartsOrBuilder(int index)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
getPartsOrBuilder in interface FunctionResponseOrBuilderpublic List<? extends FunctionResponsePartOrBuilder> getPartsOrBuilderList()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
getPartsOrBuilderList in interface FunctionResponseOrBuilderpublic FunctionResponsePart.Builder addPartsBuilder()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public FunctionResponsePart.Builder addPartsBuilder(int index)
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
public List<FunctionResponsePart.Builder> getPartsBuilderList()
Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.
repeated .google.cloud.aiplatform.v1.FunctionResponsePart parts = 4 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.