class Google::Cloud::Bigquery::RemoteFunctionOptions


Options for a remote user-defined function.
# RemoteFunctionOptions
#

def self.from_gapi gapi

Other tags:
    Private: - New RemoteFunctionOptions from a Google API Client object.
def self.from_gapi gapi
  return nil if gapi.nil?
  new.tap do |rfo|
    rfo.instance_variable_set :@gapi, gapi
  end
end

def connection

Returns:
  • (String) - The fully qualified name of the user-provided
def connection
  @gapi.connection || ""
end

def connection= new_connection

Parameters:
  • new_connection (String, nil) -- The new connection. Passing `nil`
def connection= new_connection
  @gapi.connection = new_connection
end

def endpoint

Returns:
  • (String) - The endpoint of the user-provided remote service.
def endpoint
  @gapi.endpoint || ""
end

def endpoint= new_endpoint

Parameters:
  • new_endpoint (String, nil) -- The new endpoint. Passing `nil` will
def endpoint= new_endpoint
  @gapi.endpoint = new_endpoint
end

def initialize


end
rfo.user_defined_context = { "foo" => "bar" }
rfo.connection = "projects/my-project/locations/us-east1/connections/my-connection"
rfo.endpoint = "https://us-east1-my_gcf_project.cloudfunctions.net/remote_add"
remote_function_options = Google::Cloud::Bigquery::RemoteFunctionOptions.new.tap do |rfo|

require "google/cloud/bigquery"
@example

Creates a new RemoteFunctionOptions object.
#
def initialize
  @gapi = Google::Apis::BigqueryV2::RemoteFunctionOptions.new
end

def max_batching_rows

Returns:
  • (Integer) - Max number of rows in each batch. Returns `0` if not
def max_batching_rows
  @gapi.max_batching_rows || 0
end

def max_batching_rows= new_max_batching_rows

Parameters:
  • new_max_batching_rows (Integer, nil) -- The new max batching rows.
def max_batching_rows= new_max_batching_rows
  @gapi.max_batching_rows = new_max_batching_rows
end

def to_gapi

Other tags:
    Private: - Returns the Google API Client object.
def to_gapi
  @gapi
end

def user_defined_context

Returns:
  • (Hash) - The user-defined context. Returns an empty hash if no
def user_defined_context
  @gapi.user_defined_context || {}
end

def user_defined_context= new_user_defined_context

Parameters:
  • new_user_defined_context (Hash, nil) -- The new user-defined
def user_defined_context= new_user_defined_context
  @gapi.user_defined_context = new_user_defined_context
end