Class RemoteFunctionOptions.Builder (2.24.0)

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
TypeDescription
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
NameDescription
connectionString
Returns
TypeDescription
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
NameDescription
endpointString
Returns
TypeDescription
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
NameDescription
maxBatchingRowsLong
Returns
TypeDescription
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
NameDescription
userDefinedContextMap<String,String>
Returns
TypeDescription
RemoteFunctionOptions.Builder