# Cloud Functions V1 API - Class Google::Cloud::Functions::V1::OperationMetadataV1 (v2.6.0)

2.6.0 (latest) 2.5.1 2.4.0 2.3.1 2.2.0 2.1.0 2.0.2 1.3.0 1.2.0 1.1.1 1.0.0 0.15.0 0.14.1 0.13.1 0.12.0 0.11.0 0.10.0 0.9.0 0.8.1 0.7.0 0.6.0 0.5.1 Reference documentation and code samples for the Cloud Functions V1 API class Google::Cloud::Functions::V1::OperationMetadataV1.

Metadata describing an [Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Longrunning-Operation "Google::Longrunning::Operation (class)")

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #build_id

    def build_id() -> ::String

**Returns**

- (::String) --- The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

### #build_id=

    def build_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.
**Returns**

- (::String) --- The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

### #build_name

    def build_name() -> ::String

**Returns**

- (::String) --- The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. `projects/<project-number>/locations/<region>/builds/<build-id>`.

### #build_name=

    def build_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. `projects/<project-number>/locations/<region>/builds/<build-id>`.
**Returns**

- (::String) --- The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. `projects/<project-number>/locations/<region>/builds/<build-id>`.

### #request

    def request() -> ::Google::Protobuf::Any

**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Any)) --- The original request that started the operation.

### #request=

    def request=(value) -> ::Google::Protobuf::Any

**Parameter**

- **value** ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Any)) --- The original request that started the operation.
**Returns**

- ([::Google::Protobuf::Any](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Any)) --- The original request that started the operation.

### #source_token

    def source_token() -> ::String

**Returns**

- (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

### #source_token=

    def source_token=(value) -> ::String

**Parameter**

- **value** (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.
**Returns**

- (::String) --- An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

### #target

    def target() -> ::String

**Returns**

- (::String) --- Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1`

### #target=

    def target=(value) -> ::String

**Parameter**

- **value** (::String) --- Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1`
**Returns**

- (::String) --- Target of the operation - for example `projects/project-1/locations/region-1/functions/function-1`

### #type

    def type() -> ::Google::Cloud::Functions::V1::OperationType

**Returns**

- ([::Google::Cloud::Functions::V1::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Cloud-Functions-V1-OperationType)) --- Type of operation.

### #type=

    def type=(value) -> ::Google::Cloud::Functions::V1::OperationType

**Parameter**

- **value** ([::Google::Cloud::Functions::V1::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Cloud-Functions-V1-OperationType)) --- Type of operation.
**Returns**

- ([::Google::Cloud::Functions::V1::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Cloud-Functions-V1-OperationType)) --- Type of operation.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Timestamp)) --- The last update timestamp of the operation.

### #update_time=

    def update_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Timestamp)) --- The last update timestamp of the operation.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-functions-v1/latest/Google-Protobuf-Timestamp)) --- The last update timestamp of the operation.

### #version_id

    def version_id() -> ::Integer

**Returns**

- (::Integer) --- Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.

### #version_id=

    def version_id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.
**Returns**

- (::Integer) --- Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.