# Interface EncryptedUserIdOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface EncryptedUserIdOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEncryptedId()

    public abstract String getEncryptedId()

Required. The alphanumeric encrypted id.

`string encrypted_id = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getEncryptedIdBytes()

    public abstract ByteString getEncryptedIdBytes()

Required. The alphanumeric encrypted id.

`string encrypted_id = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getEntityId()

    public abstract long getEntityId()

Required. The encryption entity ID. This should match the encryption
configuration for ad serving or Data Transfer.

`int64 entity_id = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The entityId. |

### getEntityType()

    public abstract EncryptedUserId.EncryptionEntityType getEntityType()

Required. The encryption entity type. This should match the encryption
configuration for ad serving or Data Transfer.

`
.google.ads.datamanager.v1.EncryptedUserId.EncryptionEntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.EncryptedUserId.EncryptionEntityType` | The entityType. |

### getEntityTypeValue()

    public abstract int getEntityTypeValue()

Required. The encryption entity type. This should match the encryption
configuration for ad serving or Data Transfer.

`
.google.ads.datamanager.v1.EncryptedUserId.EncryptionEntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

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

### getSource()

    public abstract EncryptedUserId.EncryptionSource getSource()

Required. Describes whether the encrypted cookie was received from ad
serving (the %m macro) or from Data Transfer.

`
.google.ads.datamanager.v1.EncryptedUserId.EncryptionSource source = 4 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.EncryptedUserId.EncryptionSource` | The source. |

### getSourceValue()

    public abstract int getSourceValue()

Required. Describes whether the encrypted cookie was received from ad
serving (the %m macro) or from Data Transfer.

`
.google.ads.datamanager.v1.EncryptedUserId.EncryptionSource source = 4 [(.google.api.field_behavior) = REQUIRED];
`

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