Package com.google.cloud.aiplatform.v1
Class FunctionCallingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>
com.google.cloud.aiplatform.v1.FunctionCallingConfig.Builder
- All Implemented Interfaces:
FunctionCallingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FunctionCallingConfig
public static final class FunctionCallingConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>
implements FunctionCallingConfigOrBuilder
Function calling config.Protobuf type
google.cloud.aiplatform.v1.FunctionCallingConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedFunctionNames(Iterable<String> values) Optional.addAllowedFunctionNames(String value) Optional.addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.getAllowedFunctionNames(int index) Optional.com.google.protobuf.ByteStringgetAllowedFunctionNamesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMode()Optional.intOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FunctionCallingConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowedFunctionNames(int index, String value) Optional.Optional.setModeValue(int value) Optional.setStreamFunctionCallArguments(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<FunctionCallingConfig.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<FunctionCallingConfig.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<FunctionCallingConfig.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<FunctionCallingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>
-
mergeFrom
public FunctionCallingConfig.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<FunctionCallingConfig.Builder>- Throws:
IOException
-
getModeValue
public int getModeValue()Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModeValuein interfaceFunctionCallingConfigOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for mode to set.- Returns:
- This builder for chaining.
-
getMode
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModein interfaceFunctionCallingConfigOrBuilder- Returns:
- The mode.
-
setMode
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getAllowedFunctionNamesList
public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList()Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowedFunctionNamesListin interfaceFunctionCallingConfigOrBuilder- Returns:
- A list containing the allowedFunctionNames.
-
getAllowedFunctionNamesCount
public int getAllowedFunctionNamesCount()Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowedFunctionNamesCountin interfaceFunctionCallingConfigOrBuilder- Returns:
- The count of allowedFunctionNames.
-
getAllowedFunctionNames
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowedFunctionNamesin interfaceFunctionCallingConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedFunctionNames at the given index.
-
getAllowedFunctionNamesBytes
public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAllowedFunctionNamesBytesin interfaceFunctionCallingConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedFunctionNames at the given index.
-
setAllowedFunctionNames
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The allowedFunctionNames to set.- Returns:
- This builder for chaining.
-
addAllowedFunctionNames
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The allowedFunctionNames to add.- Returns:
- This builder for chaining.
-
addAllAllowedFunctionNames
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The allowedFunctionNames to add.- Returns:
- This builder for chaining.
-
clearAllowedFunctionNames
Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addAllowedFunctionNamesBytes
public FunctionCallingConfig.Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value) Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the allowedFunctionNames to add.- Returns:
- This builder for chaining.
-
getStreamFunctionCallArguments
public boolean getStreamFunctionCallArguments()Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStreamFunctionCallArgumentsin interfaceFunctionCallingConfigOrBuilder- Returns:
- The streamFunctionCallArguments.
-
setStreamFunctionCallArguments
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The streamFunctionCallArguments to set.- Returns:
- This builder for chaining.
-
clearStreamFunctionCallArguments
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-