# Interface LogsPolicyOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.LogsPolicyOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.LogsPolicyOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.LogsPolicyOrBuilder)

    public interface LogsPolicyOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDestination()

    public abstract LogsPolicy.Destination getDestination()

Where logs should be saved.

`.google.events.cloud.batch.v1.LogsPolicy.Destination destination = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.LogsPolicy.Destination` | The destination. |

### getDestinationValue()

    public abstract int getDestinationValue()

Where logs should be saved.

`.google.events.cloud.batch.v1.LogsPolicy.Destination destination = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for destination. |

### getLogsPath()

    public abstract String getLogsPath()

The path to which logs are saved when the destination = PATH. This can be a
local file path on the VM, or under the mount point of a Persistent Disk or
Filestore, or a Cloud Storage path.

`string logs_path = 2;`

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

### getLogsPathBytes()

    public abstract ByteString getLogsPathBytes()

The path to which logs are saved when the destination = PATH. This can be a
local file path on the VM, or under the mount point of a Persistent Disk or
Filestore, or a Cloud Storage path.

`string logs_path = 2;`

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