Class Consent (0.1.0)

public final class Consent extends GeneratedMessageV3 implements ConsentOrBuilder

Digital Markets Act (DMA) consent settings for the user.

Protobuf type google.ads.datamanager.v1.Consent

Implements

ConsentOrBuilder

Static Fields

public static final int AD_PERSONALIZATION_FIELD_NUMBER
Field Value
Type Description
int
public static final int AD_USER_DATA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static Consent getDefaultInstance()
Returns
Type Description
Consent
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static Consent.Builder newBuilder()
Returns
Type Description
Consent.Builder
public static Consent.Builder newBuilder(Consent prototype)
Parameter
Name Description
prototype Consent
Returns
Type Description
Consent.Builder
public static Consent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Consent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Consent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Consent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Consent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
IOException
public static Consent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Consent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Consent
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<Consent> parser()
Returns
Type Description
Parser<Consent>

Methods

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

Optional. Represents if the user consents to ad personalization.

.google.ads.datamanager.v1.ConsentStatus ad_personalization = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConsentStatus

The adPersonalization.

public int getAdPersonalizationValue()

Optional. Represents if the user consents to ad personalization.

.google.ads.datamanager.v1.ConsentStatus ad_personalization = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for adPersonalization.

public ConsentStatus getAdUserData()

Optional. Represents if the user consents to ad user data.

.google.ads.datamanager.v1.ConsentStatus ad_user_data = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ConsentStatus

The adUserData.

public int getAdUserDataValue()

Optional. Represents if the user consents to ad user data.

.google.ads.datamanager.v1.ConsentStatus ad_user_data = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for adUserData.

public Consent getDefaultInstanceForType()
Returns
Type Description
Consent
public Parser<Consent> getParserForType()
Returns
Type Description
Parser<Consent>
Overrides
public int getSerializedSize()
Returns
Type Description
int
Overrides
public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Consent.Builder newBuilderForType()
Returns
Type Description
Consent.Builder
protected Consent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Consent.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public Consent.Builder toBuilder()
Returns
Type Description
Consent.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException