Class MockConfig.Builder (0.9.0)

public static final class MockConfig.Builder extends GeneratedMessage.Builder<MockConfig.Builder> implements MockConfigOrBuilder

Mock tool calls configuration for the session.

Protobuf type google.cloud.ces.v1beta.MockConfig

Implements

MockConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMockedToolCalls(Iterable<? extends MockedToolCall> values)

public MockConfig.Builder addAllMockedToolCalls(Iterable<? extends MockedToolCall> values)

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
values Iterable<? extends com.google.cloud.ces.v1beta.MockedToolCall>
Returns
Type Description
MockConfig.Builder

addMockedToolCalls(MockedToolCall value)

public MockConfig.Builder addMockedToolCalls(MockedToolCall value)

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
value MockedToolCall
Returns
Type Description
MockConfig.Builder

addMockedToolCalls(MockedToolCall.Builder builderForValue)

public MockConfig.Builder addMockedToolCalls(MockedToolCall.Builder builderForValue)

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
builderForValue MockedToolCall.Builder
Returns
Type Description
MockConfig.Builder

addMockedToolCalls(int index, MockedToolCall value)

public MockConfig.Builder addMockedToolCalls(int index, MockedToolCall value)

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

Parameters
Name Description
index int
value MockedToolCall
Returns
Type Description
MockConfig.Builder

addMockedToolCalls(int index, MockedToolCall.Builder builderForValue)

public MockConfig.Builder addMockedToolCalls(int index, MockedToolCall.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue MockedToolCall.Builder
Returns
Type Description
MockConfig.Builder

addMockedToolCallsBuilder()

public MockedToolCall.Builder addMockedToolCallsBuilder()

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
MockedToolCall.Builder

addMockedToolCallsBuilder(int index)

public MockedToolCall.Builder addMockedToolCallsBuilder(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 int
Returns
Type Description
MockedToolCall.Builder

build()

public MockConfig build()
Returns
Type Description
MockConfig

buildPartial()

public MockConfig buildPartial()
Returns
Type Description
MockConfig

clear()

public MockConfig.Builder clear()
Returns
Type Description
MockConfig.Builder
Overrides

clearMockedToolCalls()

public MockConfig.Builder clearMockedToolCalls()

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
MockConfig.Builder

clearUnmatchedToolCallBehavior()

public MockConfig.Builder clearUnmatchedToolCallBehavior()

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
MockConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public MockConfig getDefaultInstanceForType()
Returns
Type Description
MockConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMockedToolCalls(int index)

public 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 int
Returns
Type Description
MockedToolCall

getMockedToolCallsBuilder(int index)

public MockedToolCall.Builder getMockedToolCallsBuilder(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 int
Returns
Type Description
MockedToolCall.Builder

getMockedToolCallsBuilderList()

public List<MockedToolCall.Builder> getMockedToolCallsBuilderList()

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

getMockedToolCallsCount()

public 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
int

getMockedToolCallsList()

public 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
List<MockedToolCall>

getMockedToolCallsOrBuilder(int index)

public 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 int
Returns
Type Description
MockedToolCallOrBuilder

getMockedToolCallsOrBuilderList()

public 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
List<? extends com.google.cloud.ces.v1beta.MockedToolCallOrBuilder>

getUnmatchedToolCallBehavior()

public 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
MockConfig.UnmatchedToolCallBehavior

The unmatchedToolCallBehavior.

getUnmatchedToolCallBehaviorValue()

public 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
int

The enum numeric value on the wire for unmatchedToolCallBehavior.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MockConfig other)

public MockConfig.Builder mergeFrom(MockConfig other)
Parameter
Name Description
other MockConfig
Returns
Type Description
MockConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MockConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MockConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MockConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MockConfig.Builder
Overrides

removeMockedToolCalls(int index)

public MockConfig.Builder removeMockedToolCalls(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 int
Returns
Type Description
MockConfig.Builder

setMockedToolCalls(int index, MockedToolCall value)

public MockConfig.Builder setMockedToolCalls(int index, MockedToolCall value)

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

Parameters
Name Description
index int
value MockedToolCall
Returns
Type Description
MockConfig.Builder

setMockedToolCalls(int index, MockedToolCall.Builder builderForValue)

public MockConfig.Builder setMockedToolCalls(int index, MockedToolCall.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue MockedToolCall.Builder
Returns
Type Description
MockConfig.Builder

setUnmatchedToolCallBehavior(MockConfig.UnmatchedToolCallBehavior value)

public MockConfig.Builder setUnmatchedToolCallBehavior(MockConfig.UnmatchedToolCallBehavior value)

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

Parameter
Name Description
value MockConfig.UnmatchedToolCallBehavior

The unmatchedToolCallBehavior to set.

Returns
Type Description
MockConfig.Builder

This builder for chaining.

setUnmatchedToolCallBehaviorValue(int value)

public MockConfig.Builder setUnmatchedToolCallBehaviorValue(int value)

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

Parameter
Name Description
value int

The enum numeric value on the wire for unmatchedToolCallBehavior to set.

Returns
Type Description
MockConfig.Builder

This builder for chaining.