2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4

```java
public class UnparsedNotification extends AbstractNotification
```
Beta   

Notification metadata and unparsed content stream sent to this client about a watched resource.

Implementation is not thread-safe.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [AbstractNotification](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt) \> UnparsedNotification

## Inherited Members

[AbstractNotification.getChanged()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getChanged__) [AbstractNotification.getChannelExpiration()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getChannelExpiration__) [AbstractNotification.getChannelId()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getChannelId__) [AbstractNotification.getChannelToken()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getChannelToken__) [AbstractNotification.getMessageNumber()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getMessageNumber__) [AbstractNotification.getResourceId()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getResourceId__) [AbstractNotification.getResourceState()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getResourceState__) [AbstractNotification.getResourceUri()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_getResourceUri__) [AbstractNotification.setChanged(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChanged_java_lang_String_) [AbstractNotification.setChannelExpiration(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelExpiration_java_lang_String_) [AbstractNotification.setChannelId(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelId_java_lang_String_) [AbstractNotification.setChannelToken(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelToken_java_lang_String_) [AbstractNotification.setMessageNumber(long)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setMessageNumber_long_) [AbstractNotification.setResourceId(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceId_java_lang_String_) [AbstractNotification.setResourceState(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceState_java_lang_String_) [AbstractNotification.setResourceUri(String)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceUri_java_lang_String_) [AbstractNotification.toString()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_toString__) [AbstractNotification.toStringHelper()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_toStringHelper__) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

### UnparsedNotification(long messageNumber, String resourceState, String resourceId, String resourceUri, String channelId)

```java
public UnparsedNotification(long messageNumber, String resourceState, String resourceId, String resourceUri, String channelId)
```

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `messageNumber` | `long` message number (a monotonically increasing value starting with 1) |
| `resourceState` | `String` [resource state](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.ResourceStates.md.txt) |
| `resourceId` | `String` opaque ID for the watched resource that is stable across API versions |
| `resourceUri` | `String` opaque ID (in the form of a canonicalized URI) for the watched resource that is sensitive to the API version |
| `channelId` | `String` notification channel UUID provided by the client in the watch request |

## Methods

### getContentStream()

```java
public final InputStream getContentStream()
```
Returns the notification content input stream or `null` for none.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `InputStream` |   |

### getContentType()

```java
public final String getContentType()
```
Returns the notification content media type for the content stream or `null` for none or
unknown.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

### setChanged(String changed)

```java
public UnparsedNotification setChanged(String changed)
```
Sets the type of change performed on the resource or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `changed` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setChanged(String changed)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChanged_java_lang_String_)

### setChannelExpiration(String channelExpiration)

```java
public UnparsedNotification setChannelExpiration(String channelExpiration)
```
Sets the notification channel expiration time or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channelExpiration` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setChannelExpiration(String channelExpiration)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelExpiration_java_lang_String_)

### setChannelId(String channelId)

```java
public UnparsedNotification setChannelId(String channelId)
```
Sets the notification channel UUID provided by the client in the watch request.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channelId` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setChannelId(String channelId)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelId_java_lang_String_)

### setChannelToken(String channelToken)

```java
public UnparsedNotification setChannelToken(String channelToken)
```
Sets the notification channel token (an opaque string) provided by the client in the watch
request or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channelToken` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setChannelToken(String channelToken)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setChannelToken_java_lang_String_)

### setContentStream(InputStream contentStream)

```java
public UnparsedNotification setContentStream(InputStream contentStream)
```
Sets the notification content content input stream or `null` for none.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `contentStream` | `InputStream` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

### setContentType(String contentType)

```java
public UnparsedNotification setContentType(String contentType)
```
Sets the notification content media type for the content stream or `null` for none or
unknown.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `contentType` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

### setMessageNumber(long messageNumber)

```java
public UnparsedNotification setMessageNumber(long messageNumber)
```
Sets the message number (a monotonically increasing value starting with 1).

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `messageNumber` | `long` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setMessageNumber(long messageNumber)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setMessageNumber_long_)

### setResourceId(String resourceId)

```java
public UnparsedNotification setResourceId(String resourceId)
```
Sets the opaque ID for the watched resource that is stable across API versions.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `resourceId` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setResourceId(String resourceId)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceId_java_lang_String_)

### setResourceState(String resourceState)

```java
public UnparsedNotification setResourceState(String resourceState)
```
Sets the [resource state](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.ResourceStates.md.txt).

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `resourceState` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setResourceState(String resourceState)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceState_java_lang_String_)

### setResourceUri(String resourceUri)

```java
public UnparsedNotification setResourceUri(String resourceUri)
```
Sets the opaque ID (in the form of a canonicalized URI) for the watched resource that is
sensitive to the API version.

Overriding is only supported for the purpose of calling the super implementation and
changing the return type, but nothing else.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `resourceUri` | `String` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `UnparsedNotification` |   |

**Overrides** [AbstractNotification.setResourceUri(String resourceUri)](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_setResourceUri_java_lang_String_)

### toString()

```java
public String toString()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `String` |   |

**Overrides** [AbstractNotification.toString()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.AbstractNotification.md.txt#com_google_api_client_googleapis_notifications_AbstractNotification_toString__)