Class AudienceSegment.Rule (0.58.0)

public static final class AudienceSegment.Rule extends GeneratedMessage implements AudienceSegment.RuleOrBuilder

Eligibility criteria for a user to be part of an AudienceSegment.

Protobuf type google.ads.admanager.v1.AudienceSegment.Rule

Static Fields

CUSTOM_TARGETING_FIELD_NUMBER

public static final int CUSTOM_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

INVENTORY_TARGETING_FIELD_NUMBER

public static final int INVENTORY_TARGETING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AudienceSegment.Rule getDefaultInstance()
Returns
Type Description
AudienceSegment.Rule

getDescriptor()

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

newBuilder()

public static AudienceSegment.Rule.Builder newBuilder()
Returns
Type Description
AudienceSegment.Rule.Builder

newBuilder(AudienceSegment.Rule prototype)

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

parseDelimitedFrom(InputStream input)

public static AudienceSegment.Rule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudienceSegment.Rule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static AudienceSegment.Rule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AudienceSegment.Rule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static AudienceSegment.Rule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AudienceSegment.Rule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static AudienceSegment.Rule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AudienceSegment.Rule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static AudienceSegment.Rule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AudienceSegment.Rule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<AudienceSegment.Rule> parser()
Returns
Type Description
Parser<Rule>

Methods

equals(Object obj)

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

getCustomTargeting()

public CustomTargeting getCustomTargeting()

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTargeting

The customTargeting.

getCustomTargetingOrBuilder()

public CustomTargetingOrBuilder getCustomTargetingOrBuilder()

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTargetingOrBuilder

getDefaultInstanceForType()

public AudienceSegment.Rule getDefaultInstanceForType()
Returns
Type Description
AudienceSegment.Rule

getInventoryTargeting()

public InventoryTargeting getInventoryTargeting()

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InventoryTargeting

The inventoryTargeting.

getInventoryTargetingOrBuilder()

public InventoryTargetingOrBuilder getInventoryTargetingOrBuilder()

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InventoryTargetingOrBuilder

getParserForType()

public Parser<AudienceSegment.Rule> getParserForType()
Returns
Type Description
Parser<Rule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCustomTargeting()

public boolean hasCustomTargeting()

Optional. Specification of custom criteria that are part of the rule of the RuleBasedFirstPartyAudienceSegment. Once specified, the server may return a normalized but equivalent representation of the rule. There are up to 3 levels of custom criteria allowed. See CustomTargeting and its sub-messages for limitations.

.google.ads.admanager.v1.CustomTargeting custom_targeting = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customTargeting field is set.

hasInventoryTargeting()

public boolean hasInventoryTargeting()

Required. Specification of inventory (i.e. ad units and placements) that are part of the rule of the RuleBasedFirstPartyAudienceSegment.

.google.ads.admanager.v1.InventoryTargeting inventory_targeting = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the inventoryTargeting field is set.

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 AudienceSegment.Rule.Builder newBuilderForType()
Returns
Type Description
AudienceSegment.Rule.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public AudienceSegment.Rule.Builder toBuilder()
Returns
Type Description
AudienceSegment.Rule.Builder

writeTo(CodedOutputStream output)

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