public final class FunctionCall extends GeneratedMessageV3 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.vertexai.v1.FunctionCall
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static FunctionCall getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static FunctionCall.Builder newBuilder()
newBuilder(FunctionCall prototype)
public static FunctionCall.Builder newBuilder(FunctionCall prototype)
public static FunctionCall parseDelimitedFrom(InputStream input)
public static FunctionCall parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static FunctionCall parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FunctionCall parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static FunctionCall parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FunctionCall parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FunctionCall parseFrom(CodedInputStream input)
public static FunctionCall parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static FunctionCall parseFrom(InputStream input)
public static FunctionCall parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static FunctionCall parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FunctionCall parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<FunctionCall> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getArgs()
Optional. Required. 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];
Returns |
Type |
Description |
Struct |
The args.
|
getArgsOrBuilder()
public StructOrBuilder getArgsOrBuilder()
Optional. Required. 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];
getDefaultInstanceForType()
public FunctionCall getDefaultInstanceForType()
getName()
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<FunctionCall> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasArgs()
Optional. Required. 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];
Returns |
Type |
Description |
boolean |
Whether the args field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public FunctionCall.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FunctionCall.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public FunctionCall.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides