# Service Directory V1 API - Class Google::Cloud::ServiceDirectory::V1::UpdateServiceRequest (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.0 0.8.1 0.7.1 0.6.0 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the Service Directory V1 API class Google::Cloud::ServiceDirectory::V1::UpdateServiceRequest.

The request message for
[RegistrationService.UpdateService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Cloud-ServiceDirectory-V1-RegistrationService-Client#Google__Cloud__ServiceDirectory__V1__RegistrationService__Client_update_service_instance_ "Google::Cloud::ServiceDirectory::V1::RegistrationService::Client#update_service (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #service

    def service() -> ::Google::Cloud::ServiceDirectory::V1::Service

**Returns**

- ([::Google::Cloud::ServiceDirectory::V1::Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Cloud-ServiceDirectory-V1-Service)) --- Required. The updated service.

### #service=

    def service=(value) -> ::Google::Cloud::ServiceDirectory::V1::Service

**Parameter**

- **value** ([::Google::Cloud::ServiceDirectory::V1::Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Cloud-ServiceDirectory-V1-Service)) --- Required. The updated service.
**Returns**

- ([::Google::Cloud::ServiceDirectory::V1::Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Cloud-ServiceDirectory-V1-Service)) --- Required. The updated service.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Protobuf-FieldMask)) --- Required. List of fields to be updated in this request.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Protobuf-FieldMask)) --- Required. List of fields to be updated in this request.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_directory-v1/latest/Google-Protobuf-FieldMask)) --- Required. List of fields to be updated in this request.