Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class Size (0.8.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.8.0keyboard_arrow_down
public final class Size extends GeneratedMessageV3 implements SizeOrBuilder
Represents the dimensions of an AdUnit, LineItem, or Creative.
Protobuf type google.ads.admanager.v1.Size
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
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
Field Value
Type
Description
int
SIZE_TYPE_FIELD_NUMBER
public static final int SIZE_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Size getDefaultInstance ()
Returns
Type
Description
Size
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Size . Builder newBuilder ()
newBuilder(Size prototype)
public static Size . Builder newBuilder ( Size prototype )
Parameter
Name
Description
prototype
Size
public static Size parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Size
public static Size parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
parseFrom(byte[] data)
public static Size parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Size
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Size parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
parseFrom(ByteString data)
public static Size parseFrom ( ByteString data )
Returns
Type
Description
Size
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Size parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
public static Size parseFrom ( CodedInputStream input )
Returns
Type
Description
Size
public static Size parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
public static Size parseFrom ( InputStream input )
Returns
Type
Description
Size
public static Size parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
parseFrom(ByteBuffer data)
public static Size parseFrom ( ByteBuffer data )
Returns
Type
Description
Size
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Size parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Size
parser()
public static Parser<Size> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public Size getDefaultInstanceForType ()
Returns
Type
Description
Size
getHeight()
Required. The height of the Creative ,
AdUnit , or
LineItem .
int32 height = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The height.
getParserForType()
public Parser<Size> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getSizeType()
public SizeTypeEnum . SizeType getSizeType ()
Required. The SizeType of the
Creative ,
AdUnit , or
LineItem .
.google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED];
getSizeTypeValue()
public int getSizeTypeValue ()
Required. The SizeType of the
Creative ,
AdUnit , or
LineItem .
.google.ads.admanager.v1.SizeTypeEnum.SizeType size_type = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The enum numeric value on the wire for sizeType.
getWidth()
Required. The width of the Creative ,
AdUnit , or
LineItem .
int32 width = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The width.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Size . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Size . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Size . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
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 2025-07-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-18 UTC."],[[["This webpage provides documentation for the `Size` class, which is part of the `google.ads.admanager.v1` package, and is available in multiple versions, with `0.19.0` being the latest."],["The `Size` class is a Protobuf type that represents the dimensions, specifically width and height, of an AdUnit, LineItem, or Creative."],["The `Size` class inherits from `GeneratedMessageV3` and implements `SizeOrBuilder`, and it includes static methods for creating instances, parsing data, and retrieving descriptors."],["The `Size` class contains methods to manage and retrieve the height, width, and `SizeType` of ad components, including fields `HEIGHT_FIELD_NUMBER`, `SIZE_TYPE_FIELD_NUMBER` and `WIDTH_FIELD_NUMBER`."],["The listed versions of this class range from `0.1.0` to the latest `0.19.0` and can be navigated to via their link."]]],[]]