# Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::Function (v2.4.0)

2.4.0 (latest) 2.3.0 2.2.1 2.1.1 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.8 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:

<br />

`
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>

**Returns**

- (::Array\<[::Google::Cloud::Firestore::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Value)\>) --- Optional. Ordered list of arguments the given function expects.

### #args=

    def args=(value) -> ::Array<::Google::Cloud::Firestore::V1::Value>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Firestore::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Value)\>) --- Optional. Ordered list of arguments the given function expects.
**Returns**

- (::Array\<[::Google::Cloud::Firestore::V1::Value](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Value)\>) --- Optional. Ordered list of arguments the given function expects.

### #name

    def name() -> ::String

**Returns**

- (::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

**Parameter**

- **value** (::String) ---

  Required. The name of the function to evaluate.

  **Requires:**
  - must be in snake case (lower case with underscore separator).
**Returns**

- (::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}

**Returns**

- (::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}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Firestore::V1::Value}) --- Optional. Optional named arguments that certain functions may support.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::Firestore::V1::Value}) --- Optional. Optional named arguments that certain functions may support.