public static final class ClientFunction.Builder extends GeneratedMessage.Builder<ClientFunction.Builder> implements ClientFunctionOrBuilderRepresents a client-side function that the agent can invoke. When the tool is chosen by the agent, control is handed off to the client. The client is responsible for executing the function and returning the result as a ToolResponse to continue the interaction with the agent.
Protobuf type google.cloud.ces.v1.ClientFunction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ClientFunction.BuilderImplements
ClientFunctionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ClientFunction build()| Returns | |
|---|---|
| Type | Description |
ClientFunction |
|
buildPartial()
public ClientFunction buildPartial()| Returns | |
|---|---|
| Type | Description |
ClientFunction |
|
clear()
public ClientFunction.Builder clear()| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
clearDescription()
public ClientFunction.Builder clearDescription()Optional. The function description.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
clearName()
public ClientFunction.Builder clearName()Required. The function name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
clearParameters()
public ClientFunction.Builder clearParameters()Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
clearResponse()
public ClientFunction.Builder clearResponse()Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
getDefaultInstanceForType()
public ClientFunction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ClientFunction |
|
getDescription()
public String getDescription()Optional. The function description.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The function description.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. The function name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The function name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParameters()
public Schema getParameters()Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Schema |
The parameters. |
getParametersBuilder()
public Schema.Builder getParametersBuilder()Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Schema.Builder |
|
getParametersOrBuilder()
public SchemaOrBuilder getParametersOrBuilder()Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SchemaOrBuilder |
|
getResponse()
public Schema getResponse()Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Schema |
The response. |
getResponseBuilder()
public Schema.Builder getResponseBuilder()Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Schema.Builder |
|
getResponseOrBuilder()
public SchemaOrBuilder getResponseOrBuilder()Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SchemaOrBuilder |
|
hasParameters()
public boolean hasParameters()Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the parameters field is set. |
hasResponse()
public boolean hasResponse()Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the response field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ClientFunction other)
public ClientFunction.Builder mergeFrom(ClientFunction other)| Parameter | |
|---|---|
| Name | Description |
other |
ClientFunction |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClientFunction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ClientFunction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
mergeParameters(Schema value)
public ClientFunction.Builder mergeParameters(Schema value)Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Schema |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
mergeResponse(Schema value)
public ClientFunction.Builder mergeResponse(Schema value)Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Schema |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
setDescription(String value)
public ClientFunction.Builder setDescription(String value)Optional. The function description.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public ClientFunction.Builder setDescriptionBytes(ByteString value)Optional. The function description.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
setName(String value)
public ClientFunction.Builder setName(String value)Required. The function name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ClientFunction.Builder setNameBytes(ByteString value)Required. The function name.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
This builder for chaining. |
setParameters(Schema value)
public ClientFunction.Builder setParameters(Schema value)Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Schema |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
setParameters(Schema.Builder builderForValue)
public ClientFunction.Builder setParameters(Schema.Builder builderForValue)Optional. The schema of the function parameters.
.google.cloud.ces.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Schema.Builder |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
setResponse(Schema value)
public ClientFunction.Builder setResponse(Schema value)Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Schema |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|
setResponse(Schema.Builder builderForValue)
public ClientFunction.Builder setResponse(Schema.Builder builderForValue)Optional. The schema of the function response.
.google.cloud.ces.v1.Schema response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Schema.Builder |
| Returns | |
|---|---|
| Type | Description |
ClientFunction.Builder |
|