Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::Function.
Represents an unevaluated scalar expression.
For example, the expression like(user_name, "%alice%") is represented as:
name: "like"
args { field_reference: "user_name" }
args { string_value: "%alice%" }
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#args
def args() -> ::Array<::Google::Cloud::Firestore::V1::Value>- (::Array<::Google::Cloud::Firestore::V1::Value>) — Optional. Ordered list of arguments the given function expects.
#args=
def args=(value) -> ::Array<::Google::Cloud::Firestore::V1::Value>- value (::Array<::Google::Cloud::Firestore::V1::Value>) — Optional. Ordered list of arguments the given function expects.
- (::Array<::Google::Cloud::Firestore::V1::Value>) — Optional. Ordered list of arguments the given function expects.
#name
def name() -> ::String-
(::String) —
Required. The name of the function to evaluate.
Requires:
- must be in snake case (lower case with underscore separator).
#name=
def name=(value) -> ::String-
value (::String) —
Required. The name of the function to evaluate.
Requires:
- must be in snake case (lower case with underscore separator).
-
(::String) —
Required. The name of the function to evaluate.
Requires:
- must be in snake case (lower case with underscore separator).
#options
def options() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Firestore::V1::Value}- (::Google::Protobuf::Map{::String => ::Google::Cloud::Firestore::V1::Value}) — Optional. Optional named arguments that certain functions may support.
#options=
def options=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Firestore::V1::Value}- value (::Google::Protobuf::Map{::String => ::Google::Cloud::Firestore::V1::Value}) — Optional. Optional named arguments that certain functions may support.
- (::Google::Protobuf::Map{::String => ::Google::Cloud::Firestore::V1::Value}) — Optional. Optional named arguments that certain functions may support.