Package com.google.cloud.aiplatform.v1
Class FunctionCall.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
com.google.cloud.aiplatform.v1.FunctionCall.Builder
- All Implemented Interfaces:
FunctionCallOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FunctionCall
public static final class FunctionCall.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
implements FunctionCallOrBuilder
A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.Protobuf type
google.cloud.aiplatform.v1.FunctionCall-
Method Summary
Modifier and TypeMethodDescriptionaddAllPartialArgs(Iterable<? extends PartialArg> values) Optional.addPartialArgs(int index, PartialArg value) Optional.addPartialArgs(int index, PartialArg.Builder builderForValue) Optional.addPartialArgs(PartialArg value) Optional.addPartialArgs(PartialArg.Builder builderForValue) Optional.Optional.addPartialArgsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Optional.com.google.protobuf.StructgetArgs()Optional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Optional.com.google.protobuf.ByteStringOptional.getPartialArgs(int index) Optional.getPartialArgsBuilder(int index) Optional.Optional.intOptional.Optional.getPartialArgsOrBuilder(int index) Optional.List<? extends PartialArgOrBuilder>Optional.booleanOptional.booleanhasArgs()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArgs(com.google.protobuf.Struct value) Optional.mergeFrom(FunctionCall other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removePartialArgs(int index) Optional.setArgs(com.google.protobuf.Struct value) Optional.setArgs(com.google.protobuf.Struct.Builder builderForValue) Optional.Optional.setNameBytes(com.google.protobuf.ByteString value) Optional.setPartialArgs(int index, PartialArg value) Optional.setPartialArgs(int index, PartialArg.Builder builderForValue) Optional.setWillContinue(boolean value) Optional.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<FunctionCall.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<FunctionCall.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<FunctionCall.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<FunctionCall.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FunctionCall.Builder>
-
mergeFrom
public FunctionCall.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<FunctionCall.Builder>- Throws:
IOException
-
getName
Optional. The name of the function to call. Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNamein interfaceFunctionCallOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Optional. The name of the function to call. Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNameBytesin interfaceFunctionCallOrBuilder- Returns:
- The bytes for name.
-
setName
Optional. The name of the function to call. Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Optional. The name of the function to call. Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setNameBytes
Optional. The name of the function to call. Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasArgs
public boolean hasArgs()Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasArgsin interfaceFunctionCallOrBuilder- Returns:
- Whether the args field is set.
-
getArgs
public com.google.protobuf.Struct getArgs()Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsin interfaceFunctionCallOrBuilder- Returns:
- The args.
-
setArgs
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setArgs
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeArgs
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearArgs
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getArgsBuilder
public com.google.protobuf.Struct.Builder getArgsBuilder()Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getArgsOrBuilder
public com.google.protobuf.StructOrBuilder getArgsOrBuilder()Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsOrBuilderin interfaceFunctionCallOrBuilder
-
getPartialArgsList
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartialArgsListin interfaceFunctionCallOrBuilder
-
getPartialArgsCount
public int getPartialArgsCount()Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartialArgsCountin interfaceFunctionCallOrBuilder
-
getPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartialArgsin interfaceFunctionCallOrBuilder
-
setPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearPartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removePartialArgs
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartialArgsBuilder
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartialArgsOrBuilder
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartialArgsOrBuilderin interfaceFunctionCallOrBuilder
-
getPartialArgsOrBuilderList
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartialArgsOrBuilderListin interfaceFunctionCallOrBuilder
-
addPartialArgsBuilder
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addPartialArgsBuilder
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getPartialArgsBuilderList
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getWillContinue
public boolean getWillContinue()Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWillContinuein interfaceFunctionCallOrBuilder- Returns:
- The willContinue.
-
setWillContinue
Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The willContinue to set.- Returns:
- This builder for chaining.
-
clearWillContinue
Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.
bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-