Class EncryptedUserId (0.14.0)

public final class EncryptedUserId extends GeneratedMessage 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 Fields

ENCRYPTED_ID_FIELD_NUMBER

public static final int ENCRYPTED_ID_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_ID_FIELD_NUMBER

public static final int ENTITY_ID_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_TYPE_FIELD_NUMBER

public static final int ENTITY_TYPE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EncryptedUserId getDefaultInstance()
Returns
Type Description
EncryptedUserId

getDescriptor()

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

newBuilder()

public static EncryptedUserId.Builder newBuilder()
Returns
Type Description
EncryptedUserId.Builder

newBuilder(EncryptedUserId prototype)

public static EncryptedUserId.Builder newBuilder(EncryptedUserId prototype)
Parameter
Name Description
prototype EncryptedUserId
Returns
Type Description
EncryptedUserId.Builder

parseDelimitedFrom(InputStream input)

public static EncryptedUserId parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EncryptedUserId parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EncryptedUserId parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EncryptedUserId parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EncryptedUserId parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EncryptedUserId parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EncryptedUserId parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EncryptedUserId
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EncryptedUserId> parser()
Returns
Type Description
Parser<EncryptedUserId>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public EncryptedUserId getDefaultInstanceForType()
Returns
Type Description
EncryptedUserId

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.

getParserForType()

public Parser<EncryptedUserId> getParserForType()
Returns
Type Description
Parser<EncryptedUserId>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EncryptedUserId.Builder newBuilderForType()
Returns
Type Description
EncryptedUserId.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected EncryptedUserId.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EncryptedUserId.Builder
Overrides

toBuilder()

public EncryptedUserId.Builder toBuilder()
Returns
Type Description
EncryptedUserId.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException