# Interface GatewayConfigOrBuilder (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.iot.v1.GatewayConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.iot.v1.GatewayConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.iot.v1.GatewayConfigOrBuilder)

    public interface GatewayConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getGatewayAuthMethod()

    public abstract GatewayAuthMethod getGatewayAuthMethod()

Indicates how to authorize and/or authenticate devices to access the
gateway.

`.google.events.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.iot.v1.GatewayAuthMethod` | The gatewayAuthMethod. |

### getGatewayAuthMethodValue()

    public abstract int getGatewayAuthMethodValue()

Indicates how to authorize and/or authenticate devices to access the
gateway.

`.google.events.cloud.iot.v1.GatewayAuthMethod gateway_auth_method = 2;`

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

### getGatewayType()

    public abstract GatewayType getGatewayType()

Indicates whether the device is a gateway.

`.google.events.cloud.iot.v1.GatewayType gateway_type = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.iot.v1.GatewayType` | The gatewayType. |

### getGatewayTypeValue()

    public abstract int getGatewayTypeValue()

Indicates whether the device is a gateway.

`.google.events.cloud.iot.v1.GatewayType gateway_type = 1;`

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

### getLastAccessedGatewayId()

    public abstract String getLastAccessedGatewayId()

\[Output only\] The ID of the gateway the device accessed most recently.

`string last_accessed_gateway_id = 3;`

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

### getLastAccessedGatewayIdBytes()

    public abstract ByteString getLastAccessedGatewayIdBytes()

\[Output only\] The ID of the gateway the device accessed most recently.

`string last_accessed_gateway_id = 3;`

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

### getLastAccessedGatewayTime()

    public abstract Timestamp getLastAccessedGatewayTime()

\[Output only\] The most recent time at which the device accessed the gateway
specified in `last_accessed_gateway`.

`.google.protobuf.Timestamp last_accessed_gateway_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The lastAccessedGatewayTime. |

### getLastAccessedGatewayTimeOrBuilder()

    public abstract TimestampOrBuilder getLastAccessedGatewayTimeOrBuilder()

\[Output only\] The most recent time at which the device accessed the gateway
specified in `last_accessed_gateway`.

`.google.protobuf.Timestamp last_accessed_gateway_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasLastAccessedGatewayTime()

    public abstract boolean hasLastAccessedGatewayTime()

\[Output only\] The most recent time at which the device accessed the gateway
specified in `last_accessed_gateway`.

`.google.protobuf.Timestamp last_accessed_gateway_time = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the lastAccessedGatewayTime field is set. |