Class EncryptedUserId.Builder (0.14.0)

public static final class EncryptedUserId.Builder extends GeneratedMessage.Builder<EncryptedUserId.Builder> implements EncryptedUserIdOrBuilder

A user identifier issued to be used for attribution. All fields are required if this is used.

Protobuf type google.ads.datamanager.v1.EncryptedUserId

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public EncryptedUserId build()
Returns
Type Description
EncryptedUserId

buildPartial()

public EncryptedUserId buildPartial()
Returns
Type Description
EncryptedUserId

clear()

public EncryptedUserId.Builder clear()
Returns
Type Description
EncryptedUserId.Builder
Overrides

clearEncryptedId()

public EncryptedUserId.Builder clearEncryptedId()

Required. The alphanumeric encrypted id.

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

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

clearEntityId()

public EncryptedUserId.Builder clearEntityId()

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
EncryptedUserId.Builder

This builder for chaining.

clearEntityType()

public EncryptedUserId.Builder clearEntityType()

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
EncryptedUserId.Builder

This builder for chaining.

clearSource()

public EncryptedUserId.Builder clearSource()

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
EncryptedUserId.Builder

This builder for chaining.

getDefaultInstanceForType()

public EncryptedUserId getDefaultInstanceForType()
Returns
Type Description
EncryptedUserId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptedId()

public String getEncryptedId()

Required. The alphanumeric encrypted id.

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

Returns
Type Description
String

The encryptedId.

getEncryptedIdBytes()

public ByteString getEncryptedIdBytes()

Required. The alphanumeric encrypted id.

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

Returns
Type Description
ByteString

The bytes for encryptedId.

getEntityId()

public 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
long

The entityId.

getEntityType()

public 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
EncryptedUserId.EncryptionEntityType

The entityType.

getEntityTypeValue()

public 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
int

The enum numeric value on the wire for entityType.

getSource()

public 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
EncryptedUserId.EncryptionSource

The source.

getSourceValue()

public 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
int

The enum numeric value on the wire for source.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EncryptedUserId other)

public EncryptedUserId.Builder mergeFrom(EncryptedUserId other)
Parameter
Name Description
other EncryptedUserId
Returns
Type Description
EncryptedUserId.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EncryptedUserId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EncryptedUserId.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EncryptedUserId.Builder
Overrides

setEncryptedId(String value)

public EncryptedUserId.Builder setEncryptedId(String value)

Required. The alphanumeric encrypted id.

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

Parameter
Name Description
value String

The encryptedId to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setEncryptedIdBytes(ByteString value)

public EncryptedUserId.Builder setEncryptedIdBytes(ByteString value)

Required. The alphanumeric encrypted id.

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

Parameter
Name Description
value ByteString

The bytes for encryptedId to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setEntityId(long value)

public EncryptedUserId.Builder setEntityId(long value)

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];

Parameter
Name Description
value long

The entityId to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setEntityType(EncryptedUserId.EncryptionEntityType value)

public EncryptedUserId.Builder setEntityType(EncryptedUserId.EncryptionEntityType value)

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];

Parameter
Name Description
value EncryptedUserId.EncryptionEntityType

The entityType to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setEntityTypeValue(int value)

public EncryptedUserId.Builder setEntityTypeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for entityType to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setSource(EncryptedUserId.EncryptionSource value)

public EncryptedUserId.Builder setSource(EncryptedUserId.EncryptionSource value)

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];

Parameter
Name Description
value EncryptedUserId.EncryptionSource

The source to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.

setSourceValue(int value)

public EncryptedUserId.Builder setSourceValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for source to set.

Returns
Type Description
EncryptedUserId.Builder

This builder for chaining.