public static final class Consent.Builder extends GeneratedMessage.Builder<Consent.Builder> implements ConsentOrBuilderDigital Markets Act (DMA) consent settings for the user.
Protobuf type google.ads.datamanager.v1.Consent
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Consent.BuilderImplements
ConsentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Consent build()| Returns | |
|---|---|
| Type | Description |
Consent |
|
buildPartial()
public Consent buildPartial()| Returns | |
|---|---|
| Type | Description |
Consent |
|
clear()
public Consent.Builder clear()| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
|
clearAdPersonalization()
public Consent.Builder clearAdPersonalization()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 |
Consent.Builder |
This builder for chaining. |
clearAdUserData()
public Consent.Builder clearAdUserData()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 |
Consent.Builder |
This builder for chaining. |
getAdPersonalization()
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. |
getAdPersonalizationValue()
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. |
getAdUserData()
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. |
getAdUserDataValue()
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. |
getDefaultInstanceForType()
public Consent getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Consent |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Consent other)
public Consent.Builder mergeFrom(Consent other)| Parameter | |
|---|---|
| Name | Description |
other |
Consent |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Consent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Consent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
|
setAdPersonalization(ConsentStatus value)
public Consent.Builder setAdPersonalization(ConsentStatus value)Optional. Represents if the user consents to ad personalization.
.google.ads.datamanager.v1.ConsentStatus ad_personalization = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConsentStatusThe adPersonalization to set. |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
This builder for chaining. |
setAdPersonalizationValue(int value)
public Consent.Builder setAdPersonalizationValue(int value)Optional. Represents if the user consents to ad personalization.
.google.ads.datamanager.v1.ConsentStatus ad_personalization = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for adPersonalization to set. |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
This builder for chaining. |
setAdUserData(ConsentStatus value)
public Consent.Builder setAdUserData(ConsentStatus value)Optional. Represents if the user consents to ad user data.
.google.ads.datamanager.v1.ConsentStatus ad_user_data = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConsentStatusThe adUserData to set. |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
This builder for chaining. |
setAdUserDataValue(int value)
public Consent.Builder setAdUserDataValue(int value)Optional. Represents if the user consents to ad user data.
.google.ads.datamanager.v1.ConsentStatus ad_user_data = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for adUserData to set. |
| Returns | |
|---|---|
| Type | Description |
Consent.Builder |
This builder for chaining. |