Class BAPConfig.ToolspecOverride (0.99.0)

public static final class BAPConfig.ToolspecOverride extends GeneratedMessage 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 Fields

BASE_VERSION_FIELD_NUMBER

public static final int BASE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

TOOLS_FIELD_NUMBER

public static final int TOOLS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BAPConfig.ToolspecOverride getDefaultInstance()
Returns
Type Description
BAPConfig.ToolspecOverride

getDescriptor()

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

newBuilder()

public static BAPConfig.ToolspecOverride.Builder newBuilder()
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

newBuilder(BAPConfig.ToolspecOverride prototype)

public static BAPConfig.ToolspecOverride.Builder newBuilder(BAPConfig.ToolspecOverride prototype)
Parameter
Name Description
prototype BAPConfig.ToolspecOverride
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

parseDelimitedFrom(InputStream input)

public static BAPConfig.ToolspecOverride parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BAPConfig.ToolspecOverride parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BAPConfig.ToolspecOverride parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BAPConfig.ToolspecOverride parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BAPConfig.ToolspecOverride parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BAPConfig.ToolspecOverride parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BAPConfig.ToolspecOverride parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BAPConfig.ToolspecOverride
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BAPConfig.ToolspecOverride> parser()
Returns
Type Description
Parser<ToolspecOverride>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<BAPConfig.ToolspecOverride> getParserForType()
Returns
Type Description
Parser<ToolspecOverride>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BAPConfig.ToolspecOverride.Builder newBuilderForType()
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BAPConfig.ToolspecOverride.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BAPConfig.ToolspecOverride.Builder
Overrides

toBuilder()

public BAPConfig.ToolspecOverride.Builder toBuilder()
Returns
Type Description
BAPConfig.ToolspecOverride.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException