Class InventorySizeTargeting (0.62.0)

public final class InventorySizeTargeting extends GeneratedMessage implements InventorySizeTargetingOrBuilder

Represents a list of targeted and excluded sizes.

Protobuf type google.ads.admanager.v1.InventorySizeTargeting

Static Fields

EXCLUDED_INVENTORY_SIZES_FIELD_NUMBER

public static final int EXCLUDED_INVENTORY_SIZES_FIELD_NUMBER
Field Value
Type Description
int

TARGETED_INVENTORY_SIZES_FIELD_NUMBER

public static final int TARGETED_INVENTORY_SIZES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InventorySizeTargeting getDefaultInstance()
Returns
Type Description
InventorySizeTargeting

getDescriptor()

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

newBuilder()

public static InventorySizeTargeting.Builder newBuilder()
Returns
Type Description
InventorySizeTargeting.Builder

newBuilder(InventorySizeTargeting prototype)

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

parseDelimitedFrom(InputStream input)

public static InventorySizeTargeting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InventorySizeTargeting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static InventorySizeTargeting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InventorySizeTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static InventorySizeTargeting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InventorySizeTargeting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static InventorySizeTargeting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InventorySizeTargeting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static InventorySizeTargeting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InventorySizeTargeting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<InventorySizeTargeting> parser()
Returns
Type Description
Parser<InventorySizeTargeting>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InventorySizeTargeting getDefaultInstanceForType()
Returns
Type Description
InventorySizeTargeting

getExcludedInventorySizes(int index)

public Size getExcludedInventorySizes(int index)

Optional. A list of sizes that should be excluded.

repeated .google.ads.admanager.v1.Size excluded_inventory_sizes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Size

getExcludedInventorySizesCount()

public int getExcludedInventorySizesCount()

Optional. A list of sizes that should be excluded.

repeated .google.ads.admanager.v1.Size excluded_inventory_sizes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExcludedInventorySizesList()

public List<Size> getExcludedInventorySizesList()

Optional. A list of sizes that should be excluded.

repeated .google.ads.admanager.v1.Size excluded_inventory_sizes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Size>

getExcludedInventorySizesOrBuilder(int index)

public SizeOrBuilder getExcludedInventorySizesOrBuilder(int index)

Optional. A list of sizes that should be excluded.

repeated .google.ads.admanager.v1.Size excluded_inventory_sizes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SizeOrBuilder

getExcludedInventorySizesOrBuilderList()

public List<? extends SizeOrBuilder> getExcludedInventorySizesOrBuilderList()

Optional. A list of sizes that should be excluded.

repeated .google.ads.admanager.v1.Size excluded_inventory_sizes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.SizeOrBuilder>

getParserForType()

public Parser<InventorySizeTargeting> getParserForType()
Returns
Type Description
Parser<InventorySizeTargeting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetedInventorySizes(int index)

public Size getTargetedInventorySizes(int index)

Optional. A list of sizes that should be targeted/included.

repeated .google.ads.admanager.v1.Size targeted_inventory_sizes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Size

getTargetedInventorySizesCount()

public int getTargetedInventorySizesCount()

Optional. A list of sizes that should be targeted/included.

repeated .google.ads.admanager.v1.Size targeted_inventory_sizes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getTargetedInventorySizesList()

public List<Size> getTargetedInventorySizesList()

Optional. A list of sizes that should be targeted/included.

repeated .google.ads.admanager.v1.Size targeted_inventory_sizes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Size>

getTargetedInventorySizesOrBuilder(int index)

public SizeOrBuilder getTargetedInventorySizesOrBuilder(int index)

Optional. A list of sizes that should be targeted/included.

repeated .google.ads.admanager.v1.Size targeted_inventory_sizes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SizeOrBuilder

getTargetedInventorySizesOrBuilderList()

public List<? extends SizeOrBuilder> getTargetedInventorySizesOrBuilderList()

Optional. A list of sizes that should be targeted/included.

repeated .google.ads.admanager.v1.Size targeted_inventory_sizes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.ads.admanager.v1.SizeOrBuilder>

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public InventorySizeTargeting.Builder toBuilder()
Returns
Type Description
InventorySizeTargeting.Builder

writeTo(CodedOutputStream output)

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