Class RemoteFunctionOptions.Builder (2.40.3)

public abstract static class RemoteFunctionOptions.Builder

Inheritance

java.lang.Object > RemoteFunctionOptions.Builder

Constructors

Builder()

public Builder()

Methods

build()

public abstract RemoteFunctionOptions build()

Creates a RemoteFunctionOptions object.

Returns
Type Description
RemoteFunctionOptions

setConnection(String connection)

public abstract RemoteFunctionOptions.Builder setConnection(String connection)

Fully qualified name of the user-provided connection object which holds the authentication information to send requests to the remote service. Format: <code><code>"projects/{projectId}/locations/{locationId}/connections/{connectionId}"</code></code>

Parameter
Name Description
connection String
Returns
Type Description
RemoteFunctionOptions.Builder

setEndpoint(String endpoint)

public abstract RemoteFunctionOptions.Builder setEndpoint(String endpoint)

Sets Endpoint argument Endpoint of the user-provided remote service, e.g. <code><code>https://us-east1-my_gcf_project.cloudfunctions.net/remote_add</code></code>

Parameter
Name Description
endpoint String
Returns
Type Description
RemoteFunctionOptions.Builder

setMaxBatchingRows(Long maxBatchingRows)

public abstract RemoteFunctionOptions.Builder setMaxBatchingRows(Long maxBatchingRows)

Max number of rows in each batch sent to the remote service. If absent or if 0, BigQuery dynamically decides the number of rows in a batch.

Parameter
Name Description
maxBatchingRows Long
Returns
Type Description
RemoteFunctionOptions.Builder

setUserDefinedContext(Map<String,String> userDefinedContext)

public abstract RemoteFunctionOptions.Builder setUserDefinedContext(Map<String,String> userDefinedContext)

User-defined context as a set of key/value pairs, which will be sent as function invocation context together with batched arguments in the requests to the remote service. The total number of bytes of keys and values must be less than 8KB.

Parameter
Name Description
userDefinedContext Map<String,String>
Returns
Type Description
RemoteFunctionOptions.Builder