public interface MockedToolCallOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getExpectedArgsPattern()
public abstract Struct getExpectedArgsPattern()Required. A pattern to match against the args / inputs of all dispatched tool calls. If the tool call inputs match this pattern, then mock output will be returned.
.google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Struct |
The expectedArgsPattern. |
getExpectedArgsPatternOrBuilder()
public abstract StructOrBuilder getExpectedArgsPatternOrBuilder()Required. A pattern to match against the args / inputs of all dispatched tool calls. If the tool call inputs match this pattern, then mock output will be returned.
.google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getMockResponse()
public abstract Struct getMockResponse()Optional. The mock response / output to return if the tool call args / inputs match the pattern.
.google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Struct |
The mockResponse. |
getMockResponseOrBuilder()
public abstract StructOrBuilder getMockResponseOrBuilder()Optional. The mock response / output to return if the tool call args / inputs match the pattern.
.google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
getTool() (deprecated)
public abstract String getTool()Deprecated. google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See google/cloud/ces/v1beta/mocks.proto;l=48
Optional. Deprecated. Use tool_identifier instead.
string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The tool. |
getToolBytes() (deprecated)
public abstract ByteString getToolBytes()Deprecated. google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See google/cloud/ces/v1beta/mocks.proto;l=48
Optional. Deprecated. Use tool_identifier instead.
string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tool. |
getToolId()
public abstract String getToolId() Optional. The name of the tool to mock.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The toolId. |
getToolIdBytes()
public abstract ByteString getToolIdBytes() Optional. The name of the tool to mock.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for toolId. |
getToolIdentifierCase()
public abstract MockedToolCall.ToolIdentifierCase getToolIdentifierCase()| Returns | |
|---|---|
| Type | Description |
MockedToolCall.ToolIdentifierCase |
|
getToolset()
public abstract ToolsetTool getToolset()Optional. The toolset to mock.
.google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolsetTool |
The toolset. |
getToolsetOrBuilder()
public abstract ToolsetToolOrBuilder getToolsetOrBuilder()Optional. The toolset to mock.
.google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolsetToolOrBuilder |
|
hasExpectedArgsPattern()
public abstract boolean hasExpectedArgsPattern()Required. A pattern to match against the args / inputs of all dispatched tool calls. If the tool call inputs match this pattern, then mock output will be returned.
.google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the expectedArgsPattern field is set. |
hasMockResponse()
public abstract boolean hasMockResponse()Optional. The mock response / output to return if the tool call args / inputs match the pattern.
.google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mockResponse field is set. |
hasToolId()
public abstract boolean hasToolId() Optional. The name of the tool to mock.
Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the toolId field is set. |
hasToolset()
public abstract boolean hasToolset()Optional. The toolset to mock.
.google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the toolset field is set. |