Class BAPConfig.ToolspecOverride.Builder (0.99.0)

public static final class BAPConfig.ToolspecOverride.Builder extends GeneratedMessage.Builder<BAPConfig.ToolspecOverride.Builder> implements BAPConfig.ToolspecOverrideOrBuilder

Customer-facing view of the admin-curated toolspec for a BAP connection. Holds the (simplified) per-tool definitions surfaced to and editable by the admin in the Discovery Engine UI.

Mirrors the shape of the backend google.cloud.connectorexecution.v1.ToolspecOverride message, but is intentionally kept as a separate public type so the Discovery Engine API surface can evolve independently of the fed-API surface (AIP-215). Handlers convert between the two via helpers in //cloud/ml/discoveryengine/external_service/v1main/data_connector_service/lib:bap_custom_tool_util.

Protobuf type google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride

Static Methods

getDescriptor()

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

Methods

addAllTools(Iterable<? extends Struct> values)

public BAPConfig.ToolspecOverride.Builder addAllTools(Iterable<? extends Struct> values)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.protobuf.Struct>
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

addTools(Struct value)

public BAPConfig.ToolspecOverride.Builder addTools(Struct value)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Struct
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

addTools(Struct.Builder builderForValue)

public BAPConfig.ToolspecOverride.Builder addTools(Struct.Builder builderForValue)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

addTools(int index, Struct value)

public BAPConfig.ToolspecOverride.Builder addTools(int index, Struct value)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Struct
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

addTools(int index, Struct.Builder builderForValue)

public BAPConfig.ToolspecOverride.Builder addTools(int index, Struct.Builder builderForValue)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

addToolsBuilder()

public Struct.Builder addToolsBuilder()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

addToolsBuilder(int index)

public Struct.Builder addToolsBuilder(int index)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Builder

build()

public BAPConfig.ToolspecOverride build()
Returns
Type Description
BAPConfig.ToolspecOverride

buildPartial()

public BAPConfig.ToolspecOverride buildPartial()
Returns
Type Description
BAPConfig.ToolspecOverride

clear()

public BAPConfig.ToolspecOverride.Builder clear()
Returns
Type Description
BAPConfig.ToolspecOverride.Builder
Overrides

clearBaseVersion()

public BAPConfig.ToolspecOverride.Builder clearBaseVersion()

Required. Base toolspec version against which tools were authored. On Update, MUST match the server's current stable toolspec version for the connection; mismatch is rejected with a user-facing error directing the admin to re-download the latest tools first.

string base_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BAPConfig.ToolspecOverride.Builder

This builder for chaining.

clearTools()

public BAPConfig.ToolspecOverride.Builder clearTools()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BAPConfig.ToolspecOverride.Builder

getBaseVersion()

public String getBaseVersion()

Required. Base toolspec version against which tools were authored. On Update, MUST match the server's current stable toolspec version for the connection; mismatch is rejected with a user-facing error directing the admin to re-download the latest tools first.

string base_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The baseVersion.

getBaseVersionBytes()

public ByteString getBaseVersionBytes()

Required. Base toolspec version against which tools were authored. On Update, MUST match the server's current stable toolspec version for the connection; mismatch is rejected with a user-facing error directing the admin to re-download the latest tools first.

string base_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for baseVersion.

getDefaultInstanceForType()

public BAPConfig.ToolspecOverride getDefaultInstanceForType()
Returns
Type Description
BAPConfig.ToolspecOverride

getDescriptorForType()

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

getTools(int index)

public Struct getTools(int index)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Struct

getToolsBuilder(int index)

public Struct.Builder getToolsBuilder(int index)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Builder

getToolsBuilderList()

public List<Struct.Builder> getToolsBuilderList()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getToolsCount()

public int getToolsCount()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getToolsList()

public List<Struct> getToolsList()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Struct>

getToolsOrBuilder(int index)

public StructOrBuilder getToolsOrBuilder(int index)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StructOrBuilder

getToolsOrBuilderList()

public List<? extends StructOrBuilder> getToolsOrBuilderList()

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.protobuf.StructOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BAPConfig.ToolspecOverride other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeTools(int index)

public BAPConfig.ToolspecOverride.Builder removeTools(int index)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

setBaseVersion(String value)

public BAPConfig.ToolspecOverride.Builder setBaseVersion(String value)

Required. Base toolspec version against which tools were authored. On Update, MUST match the server's current stable toolspec version for the connection; mismatch is rejected with a user-facing error directing the admin to re-download the latest tools first.

string base_version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The baseVersion to set.

Returns
Type Description
BAPConfig.ToolspecOverride.Builder

This builder for chaining.

setBaseVersionBytes(ByteString value)

public BAPConfig.ToolspecOverride.Builder setBaseVersionBytes(ByteString value)

Required. Base toolspec version against which tools were authored. On Update, MUST match the server's current stable toolspec version for the connection; mismatch is rejected with a user-facing error directing the admin to re-download the latest tools first.

string base_version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for baseVersion to set.

Returns
Type Description
BAPConfig.ToolspecOverride.Builder

This builder for chaining.

setTools(int index, Struct value)

public BAPConfig.ToolspecOverride.Builder setTools(int index, Struct value)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Struct
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

setTools(int index, Struct.Builder builderForValue)

public BAPConfig.ToolspecOverride.Builder setTools(int index, Struct.Builder builderForValue)

Required. Tool definitions (one Struct per tool) that the admin has customised on top of the base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in the modify API; the request must carry at least one tool.

repeated .google.protobuf.Struct tools = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Builder
Returns
Type Description
BAPConfig.ToolspecOverride.Builder