# Interface MockConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface MockConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getMockedToolCalls(int index)

    public abstract MockedToolCall getMockedToolCalls(int index)

Optional. All tool calls to mock for the duration of the session.

`
repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.MockedToolCall` |   |

### getMockedToolCallsCount()

    public abstract int getMockedToolCallsCount()

Optional. All tool calls to mock for the duration of the session.

`
repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getMockedToolCallsList()

    public abstract List<MockedToolCall> getMockedToolCallsList()

Optional. All tool calls to mock for the duration of the session.

`
repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.MockedToolCall>` |   |

### getMockedToolCallsOrBuilder(int index)

    public abstract MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index)

Optional. All tool calls to mock for the duration of the session.

`
repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.MockedToolCallOrBuilder` |   |

### getMockedToolCallsOrBuilderList()

    public abstract List<? extends MockedToolCallOrBuilder> getMockedToolCallsOrBuilderList()

Optional. All tool calls to mock for the duration of the session.

`
repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.ces.v1beta.MockedToolCallOrBuilder>` |   |

### getUnmatchedToolCallBehavior()

    public abstract MockConfig.UnmatchedToolCallBehavior getUnmatchedToolCallBehavior()

Required. Beavhior for tool calls that don't match any args patterns in
mocked_tool_calls.

`
.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior` | The unmatchedToolCallBehavior. |

### getUnmatchedToolCallBehaviorValue()

    public abstract int getUnmatchedToolCallBehaviorValue()

Required. Beavhior for tool calls that don't match any args patterns in
mocked_tool_calls.

`
.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for unmatchedToolCallBehavior. |