Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#inhconstants) \| [Fields](https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#lfields) \| [Methods](https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#inhmethods)

# ProtoLayoutDynamicString


`
public

final

class
ProtoLayoutDynamicString
`


`

extends Object


`

`


implements

Parcelable


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.expression.ProtoLayoutDynamicString |

<br />

*** ** * ** ***

Describes a Proto Layout DynamicString that is evaluated remotely.

This type acts as a wrapper of the byte representation of a `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString`.

This type is meant to be used only to transfer DynamicString as a parcelable. The system
should use the getBytes() method to convert it back to the publicly visible DynamicString.

## Summary

| ### Inherited constants |
|---|
| From interface `android.os.Parcelable` |---|---| | `int` | `CONTENTS_FILE_DESCRIPTOR` | | `int` | `PARCELABLE_ELIDE_DUPLICATES` | | `int` | `PARCELABLE_STABILITY_LOCAL` | | `int` | `PARCELABLE_STABILITY_VINTF` | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` | |

| ### Fields ||
|---|---|
| ` public static final Creator<https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString>` | `https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#CREATOR` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#describeContents()() ` |
| ` boolean` | ` https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#equals(java.lang.Object)(Object other) ` |
| ` static https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString` | ` https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#fromBytes(byte[])(byte[] bytes) ` Creates an object using the byte array representation of a `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString` object. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#hashCode()() ` |
| ` void` | ` https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString#writeToParcel(android.os.Parcel,%20int)(Parcel dest, int flags) ` |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||
| From interface ` android.os.Parcelable ` |---|---| | ` abstract int` | ` describeContents() ` | | ` default int` | ` getStability() ` | | ` abstract void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||

## Fields

### CREATOR

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<ProtoLayoutDynamicString> CREATOR
```

<br />

<br />

## Public methods

### describeContents

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### equals

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object other)
```

<br />

<br />

| Parameters ||
|---|---|
| `other` | `Object` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### fromBytes

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ProtoLayoutDynamicString fromBytes (byte[] bytes)
```

Creates an object using the byte array representation of a `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString` object.

<br />

| Parameters ||
|---|---|
| `bytes` | `byte` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/com/google/wear/expression/ProtoLayoutDynamicString` | <br /> |

### hashCode

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### writeToParcel

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel` <br /> |
| `flags` | `int` <br /> |