Class BAPConfig.Builder (0.99.0)

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

The configuration for the BAP connector.

Protobuf type google.cloud.discoveryengine.v1.BAPConfig

Implements

BAPConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllEnabledActions(Iterable<String> values)

public BAPConfig.Builder addAllEnabledActions(Iterable<String> values)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The enabledActions to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addAllSupportedConnectorModes(Iterable<? extends BAPConfig.ConnectorMode> values)

public BAPConfig.Builder addAllSupportedConnectorModes(Iterable<? extends BAPConfig.ConnectorMode> values)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode>

The supportedConnectorModes to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addAllSupportedConnectorModesValue(Iterable<Integer> values)

public BAPConfig.Builder addAllSupportedConnectorModesValue(Iterable<Integer> values)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedConnectorModes to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addEnabledActions(String value)

public BAPConfig.Builder addEnabledActions(String value)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The enabledActions to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addEnabledActionsBytes(ByteString value)

public BAPConfig.Builder addEnabledActionsBytes(ByteString value)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the enabledActions to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addSupportedConnectorModes(BAPConfig.ConnectorMode value)

public BAPConfig.Builder addSupportedConnectorModes(BAPConfig.ConnectorMode value)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BAPConfig.ConnectorMode

The supportedConnectorModes to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

addSupportedConnectorModesValue(int value)

public BAPConfig.Builder addSupportedConnectorModesValue(int value)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for supportedConnectorModes to add.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

build()

public BAPConfig build()
Returns
Type Description
BAPConfig

buildPartial()

public BAPConfig buildPartial()
Returns
Type Description
BAPConfig

clear()

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

clearEnabledActions()

public BAPConfig.Builder clearEnabledActions()

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

clearSupportedConnectorModes()

public BAPConfig.Builder clearSupportedConnectorModes()

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

clearToolspecOverride()

public BAPConfig.Builder clearToolspecOverride()

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BAPConfig.Builder

getDefaultInstanceForType()

public BAPConfig getDefaultInstanceForType()
Returns
Type Description
BAPConfig

getDescriptorForType()

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

getEnabledActions(int index)

public String getEnabledActions(int index)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The enabledActions at the given index.

getEnabledActionsBytes(int index)

public ByteString getEnabledActionsBytes(int index)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the enabledActions at the given index.

getEnabledActionsCount()

public int getEnabledActionsCount()

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of enabledActions.

getEnabledActionsList()

public ProtocolStringList getEnabledActionsList()

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the enabledActions.

getSupportedConnectorModes(int index)

public BAPConfig.ConnectorMode getSupportedConnectorModes(int index)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
BAPConfig.ConnectorMode

The supportedConnectorModes at the given index.

getSupportedConnectorModesCount()

public int getSupportedConnectorModesCount()

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of supportedConnectorModes.

getSupportedConnectorModesList()

public List<BAPConfig.ConnectorMode> getSupportedConnectorModesList()

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ConnectorMode>

A list containing the supportedConnectorModes.

getSupportedConnectorModesValue(int index)

public int getSupportedConnectorModesValue(int index)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of supportedConnectorModes at the given index.

getSupportedConnectorModesValueList()

public List<Integer> getSupportedConnectorModesValueList()

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for supportedConnectorModes.

getToolspecOverride()

public BAPConfig.ToolspecOverride getToolspecOverride()

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BAPConfig.ToolspecOverride

The toolspecOverride.

getToolspecOverrideBuilder()

public BAPConfig.ToolspecOverride.Builder getToolspecOverrideBuilder()

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BAPConfig.ToolspecOverride.Builder

getToolspecOverrideOrBuilder()

public BAPConfig.ToolspecOverrideOrBuilder getToolspecOverrideOrBuilder()

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BAPConfig.ToolspecOverrideOrBuilder

hasToolspecOverride()

public boolean hasToolspecOverride()

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolspecOverride field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BAPConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeToolspecOverride(BAPConfig.ToolspecOverride value)

public BAPConfig.Builder mergeToolspecOverride(BAPConfig.ToolspecOverride value)

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setEnabledActions(int index, String value)

public BAPConfig.Builder setEnabledActions(int index, String value)

Optional. The actions enabled on the associated BAP connection.

repeated string enabled_actions = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The enabledActions to set.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

setSupportedConnectorModes(int index, BAPConfig.ConnectorMode value)

public BAPConfig.Builder setSupportedConnectorModes(int index, BAPConfig.ConnectorMode value)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value BAPConfig.ConnectorMode

The supportedConnectorModes to set.

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

setSupportedConnectorModesValue(int index, int value)

public BAPConfig.Builder setSupportedConnectorModesValue(int index, int value)

Required. The supported connector modes for the associated BAP connection.

repeated .google.cloud.discoveryengine.v1.BAPConfig.ConnectorMode supported_connector_modes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
BAPConfig.Builder

This builder for chaining.

setToolspecOverride(BAPConfig.ToolspecOverride value)

public BAPConfig.Builder setToolspecOverride(BAPConfig.ToolspecOverride value)

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setToolspecOverride(BAPConfig.ToolspecOverride.Builder builderForValue)

public BAPConfig.Builder setToolspecOverride(BAPConfig.ToolspecOverride.Builder builderForValue)

Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get, populated by the server by merging persisted overrides with live runtime tool definitions and trimming the result for UI consumption. On Update, the supplied value replaces the persisted overrides after server-side validation and merging: the base_version field MUST match the server's current base toolspec version (otherwise the request is rejected with a user-facing error directing the admin to re-download the latest tools first).

.google.cloud.discoveryengine.v1.BAPConfig.ToolspecOverride toolspec_override = 3 [(.google.api.field_behavior) = OPTIONAL];

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