Send feedback
Class AudienceMember (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class AudienceMember extends GeneratedMessageV3 implements AudienceMemberOrBuilder
The audience member to be operated on.
Protobuf type google.ads.datamanager.v1.AudienceMember
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONSENT_FIELD_NUMBER
public static final int CONSENT_FIELD_NUMBER
Field Value
Type
Description
int
DESTINATION_REFERENCES_FIELD_NUMBER
public static final int DESTINATION_REFERENCES_FIELD_NUMBER
Field Value
Type
Description
int
MOBILE_DATA_FIELD_NUMBER
public static final int MOBILE_DATA_FIELD_NUMBER
Field Value
Type
Description
int
PAIR_DATA_FIELD_NUMBER
public static final int PAIR_DATA_FIELD_NUMBER
Field Value
Type
Description
int
USER_DATA_FIELD_NUMBER
public static final int USER_DATA_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static AudienceMember getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AudienceMember . Builder newBuilder ()
newBuilder(AudienceMember prototype)
public static AudienceMember . Builder newBuilder ( AudienceMember prototype )
public static AudienceMember parseDelimitedFrom ( InputStream input )
public static AudienceMember parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AudienceMember parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AudienceMember parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AudienceMember parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AudienceMember parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AudienceMember parseFrom ( CodedInputStream input )
public static AudienceMember parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AudienceMember parseFrom ( InputStream input )
public static AudienceMember parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AudienceMember parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AudienceMember parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AudienceMember> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getConsent()
public Consent getConsent ()
Optional. The consent setting for the user.
.google.ads.datamanager.v1.Consent consent = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
Consent
The consent.
getConsentOrBuilder()
public ConsentOrBuilder getConsentOrBuilder ()
Optional. The consent setting for the user.
.google.ads.datamanager.v1.Consent consent = 3 [(.google.api.field_behavior) = OPTIONAL];
getDataCase()
public AudienceMember . DataCase getDataCase ()
getDefaultInstanceForType()
public AudienceMember getDefaultInstanceForType ()
getDestinationReferences(int index)
public String getDestinationReferences ( int index )
Optional. Defines which
Destination to send the audience
member to.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int The index of the element to return.
Returns
Type
Description
String
The destinationReferences at the given index.
getDestinationReferencesBytes(int index)
public ByteString getDestinationReferencesBytes ( int index )
Optional. Defines which
Destination to send the audience
member to.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the destinationReferences at the given index.
getDestinationReferencesCount()
public int getDestinationReferencesCount ()
Optional. Defines which
Destination to send the audience
member to.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The count of destinationReferences.
getDestinationReferencesList()
public ProtocolStringList getDestinationReferencesList ()
Optional. Defines which
Destination to send the audience
member to.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
getMobileData()
public MobileData getMobileData ()
Data identifying the user's mobile devices.
.google.ads.datamanager.v1.MobileData mobile_data = 5;
Returns
Type
Description
MobileData
The mobileData.
getMobileDataOrBuilder()
public MobileDataOrBuilder getMobileDataOrBuilder ()
Data identifying the user's mobile devices.
.google.ads.datamanager.v1.MobileData mobile_data = 5;
getPairData()
public PairData getPairData ()
Returns
Type
Description
PairData
The pairData.
getPairDataOrBuilder()
public PairDataOrBuilder getPairDataOrBuilder ()
getParserForType()
public Parser<AudienceMember> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getUserData()
public UserData getUserData ()
User-provided data that identifies the user.
.google.ads.datamanager.v1.UserData user_data = 2;
Returns
Type
Description
UserData
The userData.
getUserDataOrBuilder()
public UserDataOrBuilder getUserDataOrBuilder ()
User-provided data that identifies the user.
.google.ads.datamanager.v1.UserData user_data = 2;
hasConsent()
public boolean hasConsent ()
Optional. The consent setting for the user.
.google.ads.datamanager.v1.Consent consent = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the consent field is set.
hasMobileData()
public boolean hasMobileData ()
Data identifying the user's mobile devices.
.google.ads.datamanager.v1.MobileData mobile_data = 5;
Returns
Type
Description
boolean
Whether the mobileData field is set.
hasPairData()
public boolean hasPairData ()
Returns
Type
Description
boolean
Whether the pairData field is set.
hasUserData()
public boolean hasUserData ()
User-provided data that identifies the user.
.google.ads.datamanager.v1.UserData user_data = 2;
Returns
Type
Description
boolean
Whether the userData field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AudienceMember . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AudienceMember . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AudienceMember . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-10 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-10 UTC."],[],[]]