# Agent Registry V1 API - Class Google::Cloud::AgentRegistry::V1::GetServiceRequest (v0.1.0)

Reference documentation and code samples for the Agent Registry V1 API class Google::Cloud::AgentRegistry::V1::GetServiceRequest.

Message for getting a Service

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
**Returns**

- (::String) --- Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.