Class ConnectorTool.Builder (0.1.0)

public static final class ConnectorTool.Builder extends GeneratedMessage.Builder<ConnectorTool.Builder> implements ConnectorToolOrBuilder

A ConnectorTool allows connections to different integrations. See: https://cloud.google.com/integration-connectors/docs/overview.

Protobuf type google.cloud.ces.v1.ConnectorTool

Static Methods

getDescriptor()

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

Methods

build()

public ConnectorTool build()
Returns
Type Description
ConnectorTool

buildPartial()

public ConnectorTool buildPartial()
Returns
Type Description
ConnectorTool

clear()

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

clearAction()

public ConnectorTool.Builder clearAction()

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectorTool.Builder

clearAuthConfig()

public ConnectorTool.Builder clearAuthConfig()

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectorTool.Builder

clearConnection()

public ConnectorTool.Builder clearConnection()

Required. The full resource name of the referenced Integration Connectors Connection. Format: projects/{project}/locations/{location}/connections/{connection}

string connection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

clearDescription()

public ConnectorTool.Builder clearDescription()

Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

clearName()

public ConnectorTool.Builder clearName()

Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

getAction()

public Action getAction()

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Action

The action.

getActionBuilder()

public Action.Builder getActionBuilder()

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Action.Builder

getActionOrBuilder()

public ActionOrBuilder getActionOrBuilder()

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ActionOrBuilder

getAuthConfig()

public EndUserAuthConfig getAuthConfig()

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndUserAuthConfig

The authConfig.

getAuthConfigBuilder()

public EndUserAuthConfig.Builder getAuthConfigBuilder()

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndUserAuthConfig.Builder

getAuthConfigOrBuilder()

public EndUserAuthConfigOrBuilder getAuthConfigOrBuilder()

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EndUserAuthConfigOrBuilder

getConnection()

public String getConnection()

Required. The full resource name of the referenced Integration Connectors Connection. Format: projects/{project}/locations/{location}/connections/{connection}

string connection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The connection.

getConnectionBytes()

public ByteString getConnectionBytes()

Required. The full resource name of the referenced Integration Connectors Connection. Format: projects/{project}/locations/{location}/connections/{connection}

string connection = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for connection.

getDefaultInstanceForType()

public ConnectorTool getDefaultInstanceForType()
Returns
Type Description
ConnectorTool

getDescription()

public String getDescription()

Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getName()

public String getName()

Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

hasAction()

public boolean hasAction()

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the action field is set.

hasAuthConfig()

public boolean hasAuthConfig()

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the authConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAction(Action value)

public ConnectorTool.Builder mergeAction(Action value)

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Action
Returns
Type Description
ConnectorTool.Builder

mergeAuthConfig(EndUserAuthConfig value)

public ConnectorTool.Builder mergeAuthConfig(EndUserAuthConfig value)

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EndUserAuthConfig
Returns
Type Description
ConnectorTool.Builder

mergeFrom(ConnectorTool other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAction(Action value)

public ConnectorTool.Builder setAction(Action value)

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Action
Returns
Type Description
ConnectorTool.Builder

setAction(Action.Builder builderForValue)

public ConnectorTool.Builder setAction(Action.Builder builderForValue)

Required. Action for the tool to use.

.google.cloud.ces.v1.Action action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Action.Builder
Returns
Type Description
ConnectorTool.Builder

setAuthConfig(EndUserAuthConfig value)

public ConnectorTool.Builder setAuthConfig(EndUserAuthConfig value)

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EndUserAuthConfig
Returns
Type Description
ConnectorTool.Builder

setAuthConfig(EndUserAuthConfig.Builder builderForValue)

public ConnectorTool.Builder setAuthConfig(EndUserAuthConfig.Builder builderForValue)

Optional. Configures how authentication is handled in Integration Connectors. By default, an admin authentication is passed in the Integration Connectors API requests. You can override it with a different end-user authentication config. Note: The Connection must have authentication override enabled in order to specify an EUC configuration here - otherwise, the ConnectorTool creation will fail. See https://cloud.google.com/application-integration/docs/configure-connectors-task#configure-authentication-override for details.

.google.cloud.ces.v1.EndUserAuthConfig auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EndUserAuthConfig.Builder
Returns
Type Description
ConnectorTool.Builder

setConnection(String value)

public ConnectorTool.Builder setConnection(String value)

Required. The full resource name of the referenced Integration Connectors Connection. Format: projects/{project}/locations/{location}/connections/{connection}

string connection = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The connection to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

setConnectionBytes(ByteString value)

public ConnectorTool.Builder setConnectionBytes(ByteString value)

Required. The full resource name of the referenced Integration Connectors Connection. Format: projects/{project}/locations/{location}/connections/{connection}

string connection = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for connection to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

setDescription(String value)

public ConnectorTool.Builder setDescription(String value)

Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ConnectorTool.Builder setDescriptionBytes(ByteString value)

Optional. The description of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

setName(String value)

public ConnectorTool.Builder setName(String value)

Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ConnectorTool.Builder setNameBytes(ByteString value)

Optional. The name of the tool that can be used by the Agent to decide whether to call this ConnectorTool.

string name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ConnectorTool.Builder

This builder for chaining.