# Service Usage V1 API - Class Google::Cloud::ServiceUsage::V1::GetServiceRequest (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.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.1 0.2.1 0.1.4 Reference documentation and code samples for the Service Usage V1 API class Google::Cloud::ServiceUsage::V1::GetServiceRequest.

Request message for the `GetService` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Name of the consumer and service to get the `ConsumerState` for.


  An example name would be:
  `projects/123/services/serviceusage.googleapis.com` where `123` is the
  project number.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the consumer and service to get the `ConsumerState` for.


  An example name would be:
  `projects/123/services/serviceusage.googleapis.com` where `123` is the
  project number.
**Returns**

- (::String) --- Name of the consumer and service to get the `ConsumerState` for.


  An example name would be:
  `projects/123/services/serviceusage.googleapis.com` where `123` is the
  project number.