# Service Management V1 API - Class Google::Protobuf::Method (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.2 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.10 Reference documentation and code samples for the Service Management V1 API class Google::Protobuf::Method.

Method represents a method of an API interface.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- The simple name of this method.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The simple name of this method.
**Returns**

- (::String) --- The simple name of this method.

### #options

    def options() -> ::Array<::Google::Protobuf::Option>

**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Option)\>) --- Any metadata attached to the method.

### #options=

    def options=(value) -> ::Array<::Google::Protobuf::Option>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Option)\>) --- Any metadata attached to the method.
**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Option)\>) --- Any metadata attached to the method.

### #request_streaming

    def request_streaming() -> ::Boolean

**Returns**

- (::Boolean) --- If true, the request is streamed.

### #request_streaming=

    def request_streaming=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If true, the request is streamed.
**Returns**

- (::Boolean) --- If true, the request is streamed.

### #request_type_url

    def request_type_url() -> ::String

**Returns**

- (::String) --- A URL of the input message type.

### #request_type_url=

    def request_type_url=(value) -> ::String

**Parameter**

- **value** (::String) --- A URL of the input message type.
**Returns**

- (::String) --- A URL of the input message type.

### #response_streaming

    def response_streaming() -> ::Boolean

**Returns**

- (::Boolean) --- If true, the response is streamed.

### #response_streaming=

    def response_streaming=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If true, the response is streamed.
**Returns**

- (::Boolean) --- If true, the response is streamed.

### #response_type_url

    def response_type_url() -> ::String

**Returns**

- (::String) --- The URL of the output message type.

### #response_type_url=

    def response_type_url=(value) -> ::String

**Parameter**

- **value** (::String) --- The URL of the output message type.
**Returns**

- (::String) --- The URL of the output message type.

### #syntax

    def syntax() -> ::Google::Protobuf::Syntax

**Returns**

- ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Syntax)) --- The source syntax of this method.

### #syntax=

    def syntax=(value) -> ::Google::Protobuf::Syntax

**Parameter**

- **value** ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Syntax)) --- The source syntax of this method.
**Returns**

- ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Syntax)) --- The source syntax of this method.