Class FunctionCall.Builder (3.37.0)

public static final class FunctionCall.Builder extends GeneratedMessageV3.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.v1beta1.FunctionCall

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FunctionCall.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FunctionCall.Builder
Overrides

build()

public FunctionCall build()
Returns
TypeDescription
FunctionCall

buildPartial()

public FunctionCall buildPartial()
Returns
TypeDescription
FunctionCall

clear()

public FunctionCall.Builder clear()
Returns
TypeDescription
FunctionCall.Builder
Overrides

clearArgs()

public FunctionCall.Builder clearArgs()

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
TypeDescription
FunctionCall.Builder

clearField(Descriptors.FieldDescriptor field)

public FunctionCall.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FunctionCall.Builder
Overrides

clearName()

public FunctionCall.Builder clearName()

Required. The name of the function to call. Matches [FunctionDeclaration.name].

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FunctionCall.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FunctionCall.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FunctionCall.Builder
Overrides

clone()

public FunctionCall.Builder clone()
Returns
TypeDescription
FunctionCall.Builder
Overrides

getArgs()

public Struct 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
TypeDescription
Struct

The args.

getArgsBuilder()

public Struct.Builder getArgsBuilder()

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
TypeDescription
Builder

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];

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public FunctionCall getDefaultInstanceForType()
Returns
TypeDescription
FunctionCall

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the function to call. Matches [FunctionDeclaration.name].

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

hasArgs()

public boolean 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
TypeDescription
boolean

Whether the args field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArgs(Struct value)

public FunctionCall.Builder mergeArgs(Struct value)

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];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
FunctionCall.Builder

mergeFrom(FunctionCall other)

public FunctionCall.Builder mergeFrom(FunctionCall other)
Parameter
NameDescription
otherFunctionCall
Returns
TypeDescription
FunctionCall.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FunctionCall.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FunctionCall.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FunctionCall.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FunctionCall.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FunctionCall.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FunctionCall.Builder
Overrides

setArgs(Struct value)

public FunctionCall.Builder setArgs(Struct value)

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];

Parameter
NameDescription
valueStruct
Returns
TypeDescription
FunctionCall.Builder

setArgs(Struct.Builder builderForValue)

public FunctionCall.Builder setArgs(Struct.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
FunctionCall.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FunctionCall.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FunctionCall.Builder
Overrides

setName(String value)

public FunctionCall.Builder setName(String value)

Required. The name of the function to call. Matches [FunctionDeclaration.name].

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
FunctionCall.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FunctionCall.Builder setNameBytes(ByteString value)

Required. The name of the function to call. Matches [FunctionDeclaration.name].

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
FunctionCall.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FunctionCall.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FunctionCall.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FunctionCall.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FunctionCall.Builder
Overrides