Class Audience
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v15.resources.Audience
-
- All Implemented Interfaces:
AudienceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class Audience extends com.google.protobuf.GeneratedMessageV3 implements AudienceOrBuilder
Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.
Protobuf typegoogle.ads.googleads.v15.resources.Audience- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAudience.BuilderAudience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASSET_GROUP_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDIMENSIONS_FIELD_NUMBERstatic intEXCLUSION_DIMENSION_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intRESOURCE_NAME_FIELD_NUMBERstatic intSCOPE_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAssetGroup()Immutable.com.google.protobuf.ByteStringgetAssetGroupBytes()Immutable.static AudiencegetDefaultInstance()AudiencegetDefaultInstanceForType()java.lang.StringgetDescription()Description of this audience.com.google.protobuf.ByteStringgetDescriptionBytes()Description of this audience.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()AudienceDimensiongetDimensions(int index)Positive dimensions specifying the audience composition.intgetDimensionsCount()Positive dimensions specifying the audience composition.java.util.List<AudienceDimension>getDimensionsList()Positive dimensions specifying the audience composition.AudienceDimensionOrBuildergetDimensionsOrBuilder(int index)Positive dimensions specifying the audience composition.java.util.List<? extends AudienceDimensionOrBuilder>getDimensionsOrBuilderList()Positive dimensions specifying the audience composition.AudienceExclusionDimensiongetExclusionDimension()Negative dimension specifying the audience composition.AudienceExclusionDimensionOrBuildergetExclusionDimensionOrBuilder()Negative dimension specifying the audience composition.longgetId()Output only.java.lang.StringgetName()Name of the audience.com.google.protobuf.ByteStringgetNameBytes()Name of the audience.com.google.protobuf.Parser<Audience>getParserForType()java.lang.StringgetResourceName()Immutable.com.google.protobuf.ByteStringgetResourceNameBytes()Immutable.AudienceScopeEnum.AudienceScopegetScope()Defines the scope this audience can be used in.intgetScopeValue()Defines the scope this audience can be used in.intgetSerializedSize()AudienceStatusEnum.AudienceStatusgetStatus()Output only.intgetStatusValue()Output only.booleanhasExclusionDimension()Negative dimension specifying the audience composition.inthashCode()booleanhasName()Name of the audience.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Audience.BuildernewBuilder()static Audience.BuildernewBuilder(Audience prototype)Audience.BuildernewBuilderForType()protected Audience.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AudienceparseDelimitedFrom(java.io.InputStream input)static AudienceparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AudienceparseFrom(byte[] data)static AudienceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AudienceparseFrom(com.google.protobuf.ByteString data)static AudienceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AudienceparseFrom(com.google.protobuf.CodedInputStream input)static AudienceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AudienceparseFrom(java.io.InputStream input)static AudienceparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AudienceparseFrom(java.nio.ByteBuffer data)static AudienceparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Audience>parser()Audience.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RESOURCE_NAME_FIELD_NUMBER
public static final int RESOURCE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIMENSIONS_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUSION_DIMENSION_FIELD_NUMBER
public static final int EXCLUSION_DIMENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASSET_GROUP_FIELD_NUMBER
public static final int ASSET_GROUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNamein interfaceAudienceOrBuilder- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getResourceNameBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for resourceName.
-
getId
public long getId()
Output only. ID of the audience.
int64 id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceAudienceOrBuilder- Returns:
- The id.
-
getStatusValue
public int getStatusValue()
Output only. Status of this audience. Indicates whether the audience is enabled or removed.
.google.ads.googleads.v15.enums.AudienceStatusEnum.AudienceStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusValuein interfaceAudienceOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
getStatus
public AudienceStatusEnum.AudienceStatus getStatus()
Output only. Status of this audience. Indicates whether the audience is enabled or removed.
.google.ads.googleads.v15.enums.AudienceStatusEnum.AudienceStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatusin interfaceAudienceOrBuilder- Returns:
- The status.
-
hasName
public boolean hasName()
Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
hasNamein interfaceAudienceOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
getNamein interfaceAudienceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
optional string name = 10;- Specified by:
getNameBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for name.
-
getDescription
public java.lang.String getDescription()
Description of this audience.
string description = 5;- Specified by:
getDescriptionin interfaceAudienceOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of this audience.
string description = 5;- Specified by:
getDescriptionBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for description.
-
getDimensionsList
public java.util.List<AudienceDimension> getDimensionsList()
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v15.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsListin interfaceAudienceOrBuilder
-
getDimensionsOrBuilderList
public java.util.List<? extends AudienceDimensionOrBuilder> getDimensionsOrBuilderList()
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v15.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsOrBuilderListin interfaceAudienceOrBuilder
-
getDimensionsCount
public int getDimensionsCount()
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v15.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsCountin interfaceAudienceOrBuilder
-
getDimensions
public AudienceDimension getDimensions(int index)
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v15.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsin interfaceAudienceOrBuilder
-
getDimensionsOrBuilder
public AudienceDimensionOrBuilder getDimensionsOrBuilder(int index)
Positive dimensions specifying the audience composition.
repeated .google.ads.googleads.v15.common.AudienceDimension dimensions = 6;- Specified by:
getDimensionsOrBuilderin interfaceAudienceOrBuilder
-
hasExclusionDimension
public boolean hasExclusionDimension()
Negative dimension specifying the audience composition.
.google.ads.googleads.v15.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
hasExclusionDimensionin interfaceAudienceOrBuilder- Returns:
- Whether the exclusionDimension field is set.
-
getExclusionDimension
public AudienceExclusionDimension getExclusionDimension()
Negative dimension specifying the audience composition.
.google.ads.googleads.v15.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
getExclusionDimensionin interfaceAudienceOrBuilder- Returns:
- The exclusionDimension.
-
getExclusionDimensionOrBuilder
public AudienceExclusionDimensionOrBuilder getExclusionDimensionOrBuilder()
Negative dimension specifying the audience composition.
.google.ads.googleads.v15.common.AudienceExclusionDimension exclusion_dimension = 7;- Specified by:
getExclusionDimensionOrBuilderin interfaceAudienceOrBuilder
-
getScopeValue
public int getScopeValue()
Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
.google.ads.googleads.v15.enums.AudienceScopeEnum.AudienceScope scope = 8;- Specified by:
getScopeValuein interfaceAudienceOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
getScope
public AudienceScopeEnum.AudienceScope getScope()
Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
.google.ads.googleads.v15.enums.AudienceScopeEnum.AudienceScope scope = 8;- Specified by:
getScopein interfaceAudienceOrBuilder- Returns:
- The scope.
-
getAssetGroup
public java.lang.String getAssetGroup()
Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
string asset_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetGroupin interfaceAudienceOrBuilder- Returns:
- The assetGroup.
-
getAssetGroupBytes
public com.google.protobuf.ByteString getAssetGroupBytes()
Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
string asset_group = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getAssetGroupBytesin interfaceAudienceOrBuilder- Returns:
- The bytes for assetGroup.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Audience parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audience parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audience parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Audience parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Audience parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audience parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Audience.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Audience.Builder newBuilder()
-
newBuilder
public static Audience.Builder newBuilder(Audience prototype)
-
toBuilder
public Audience.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Audience.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Audience getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Audience> parser()
-
getParserForType
public com.google.protobuf.Parser<Audience> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Audience getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-