# Infrastructure Manager V1 API - Class Google::Longrunning::OperationInfo (v0.2.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.2.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config-v1/latest/Google-Longrunning-OperationInfo)
- [0.1.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config-v1/0.1.0/Google-Longrunning-OperationInfo)
Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Longrunning::OperationInfo.

A message representing the message types used by a long-running operation.


Example:

<br />

rpc LongRunningRecognize(LongRunningRecognizeRequest)
returns (google.longrunning.Operation) {
option (google.longrunning.operation_info) = {
response_type: "LongRunningRecognizeResponse"
metadata_type: "LongRunningRecognizeMetadata"
};
}

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #metadata_type

    def metadata_type() -> ::String

**Returns**

- (::String) --- Required. The message name of the metadata type for this long-running operation.

  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.

### #metadata_type=

    def metadata_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The message name of the metadata type for this long-running operation.


  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.
**Returns**

- (::String) --- Required. The message name of the metadata type for this long-running operation.

  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.

### #response_type

    def response_type() -> ::String

**Returns**

- (::String) --- Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response.

  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.

### #response_type=

    def response_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response.


  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.
**Returns**

- (::String) --- Required. The message name of the primary return type for this long-running operation. This type will be used to deserialize the LRO's response.

  If the response is in a different package from the rpc, a fully-qualified
  message name must be used (e.g. `google.protobuf.Struct`).

  Note: Altering this value constitutes a breaking change.