# Interface ServiceDirectoryConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ServiceDirectoryConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getService()

    public abstract String getService()

Required. The name of [Service
Directory](https://cloud.google.com/service-directory) service.
Format:
`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
Location of the service directory must be the same as the location of the
app.

`
string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The service. |

### getServiceBytes()

    public abstract ByteString getServiceBytes()

Required. The name of [Service
Directory](https://cloud.google.com/service-directory) service.
Format:
`projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`.
Location of the service directory must be the same as the location of the
app.

`
string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for service. |