Package com.google.cloud.aiplatform.v1
Class FunctionResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>
com.google.cloud.aiplatform.v1.FunctionResponse.Builder
- All Implemented Interfaces:
FunctionResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FunctionResponse
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.FunctionResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllParts(Iterable<? extends FunctionResponsePart> values) Optional.addParts(int index, FunctionResponsePart value) Optional.addParts(int index, FunctionResponsePart.Builder builderForValue) Optional.addParts(FunctionResponsePart value) Optional.addParts(FunctionResponsePart.Builder builderForValue) Optional.Optional.addPartsBuilder(int index) Optional.build()clear()Required.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getParts(int index) Optional.getPartsBuilder(int index) Optional.Optional.intOptional.Optional.getPartsOrBuilder(int index) Optional.List<? extends FunctionResponsePartOrBuilder>Optional.com.google.protobuf.StructRequired.com.google.protobuf.Struct.BuilderRequired.com.google.protobuf.StructOrBuilderRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FunctionResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResponse(com.google.protobuf.Struct value) Required.removeParts(int index) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setParts(int index, FunctionResponsePart value) Optional.setParts(int index, FunctionResponsePart.Builder builderForValue) Optional.setResponse(com.google.protobuf.Struct value) Required.setResponse(com.google.protobuf.Struct.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FunctionResponse.Builder>
-
mergeFrom
public FunctionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FunctionResponse.Builder>- Throws:
IOException
-
getName
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceFunctionResponseOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceFunctionResponseOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasResponse
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];- Specified by:
hasResponsein interfaceFunctionResponseOrBuilder- Returns:
- Whether the response field is set.
-
getResponse
public 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];- Specified by:
getResponsein interfaceFunctionResponseOrBuilder- Returns:
- The response.
-
setResponse
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]; -
setResponse
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]; -
mergeResponse
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]; -
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]; -
getResponseBuilder
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]; -
getResponseOrBuilder
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];- Specified by:
getResponseOrBuilderin interfaceFunctionResponseOrBuilder
-
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];- Specified by:
getPartsListin interfaceFunctionResponseOrBuilder
-
getPartsCount
public 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];- Specified by:
getPartsCountin interfaceFunctionResponseOrBuilder
-
getParts
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];- Specified by:
getPartsin interfaceFunctionResponseOrBuilder
-
setParts
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]; -
setParts
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]; -
addParts
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]; -
addParts
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]; -
addParts
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]; -
addParts
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]; -
addAllParts
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]; -
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]; -
removeParts
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]; -
getPartsBuilder
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
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];- Specified by:
getPartsOrBuilderin interfaceFunctionResponseOrBuilder
-
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];- Specified by:
getPartsOrBuilderListin interfaceFunctionResponseOrBuilder
-
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]; -
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]; -
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];
-