Send feedback
Class FunctionResponse.Builder (3.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.52.0 keyboard_arrow_down
public static final class FunctionResponse . Builder extends GeneratedMessageV3 . 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.v1beta1.FunctionResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public FunctionResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public FunctionResponse build ()
public FunctionResponse buildPartial ()
public FunctionResponse . Builder clear ()
Overrides
public FunctionResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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 clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public FunctionResponse . Builder clearResponse ()
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
public FunctionResponse . Builder clone ()
Overrides
public FunctionResponse getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
Required. The name of the function to call.
Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Required. The name of the function to call.
Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for name.
public Struct getResponse ()
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Struct
The response.
public Struct . Builder getResponseBuilder ()
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
public StructOrBuilder getResponseOrBuilder ()
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean hasResponse ()
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the response field is set.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public FunctionResponse . Builder mergeFrom ( FunctionResponse other )
public FunctionResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public FunctionResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public FunctionResponse . Builder mergeResponse ( Struct value )
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
Struct
public final FunctionResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public FunctionResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public 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];
Parameter
Name
Description
value
String
The name to set.
public FunctionResponse . Builder setNameBytes ( ByteString value )
Required. The name of the function to call.
Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for name to set.
public FunctionResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public FunctionResponse . Builder setResponse ( Struct value )
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
Struct
public FunctionResponse . Builder setResponse ( Struct . Builder builderForValue )
Required. The function response in JSON object format.
.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
builderForValue
Builder
public final FunctionResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]