public final class AdUnitSize extends GeneratedMessageV3 implements AdUnitSizeOrBuilder
Represents the size, environment, and companions of an ad in an ad unit.
Protobuf type google.ads.admanager.v1.AdUnitSize
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
COMPANIONS_FIELD_NUMBER
public static final int COMPANIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENVIRONMENT_TYPE_FIELD_NUMBER
public static final int ENVIRONMENT_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AdUnitSize getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AdUnitSize.Builder newBuilder()
newBuilder(AdUnitSize prototype)
public static AdUnitSize.Builder newBuilder(AdUnitSize prototype)
public static AdUnitSize parseDelimitedFrom(InputStream input)
public static AdUnitSize parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AdUnitSize parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdUnitSize parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AdUnitSize parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdUnitSize parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdUnitSize parseFrom(CodedInputStream input)
public static AdUnitSize parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdUnitSize parseFrom(InputStream input)
public static AdUnitSize parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AdUnitSize parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdUnitSize parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AdUnitSize> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCompanions(int index)
public Size getCompanions(int index)
The companions for this ad unit size. Companions are only valid if the
environment is
VIDEO_PLAYER.
repeated .google.ads.admanager.v1.Size companions = 3;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Size |
|
getCompanionsCount()
public int getCompanionsCount()
The companions for this ad unit size. Companions are only valid if the
environment is
VIDEO_PLAYER.
repeated .google.ads.admanager.v1.Size companions = 3;
Returns |
Type |
Description |
int |
|
getCompanionsList()
public List<Size> getCompanionsList()
The companions for this ad unit size. Companions are only valid if the
environment is
VIDEO_PLAYER.
repeated .google.ads.admanager.v1.Size companions = 3;
getCompanionsOrBuilder(int index)
public SizeOrBuilder getCompanionsOrBuilder(int index)
The companions for this ad unit size. Companions are only valid if the
environment is
VIDEO_PLAYER.
repeated .google.ads.admanager.v1.Size companions = 3;
Parameter |
Name |
Description |
index |
int
|
getCompanionsOrBuilderList()
public List<? extends SizeOrBuilder> getCompanionsOrBuilderList()
The companions for this ad unit size. Companions are only valid if the
environment is
VIDEO_PLAYER.
repeated .google.ads.admanager.v1.Size companions = 3;
Returns |
Type |
Description |
List<? extends com.google.ads.admanager.v1.SizeOrBuilder> |
|
getDefaultInstanceForType()
public AdUnitSize getDefaultInstanceForType()
getEnvironmentType()
public EnvironmentTypeEnum.EnvironmentType getEnvironmentType()
Required. The EnvironmentType of the AdUnit
.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];
getEnvironmentTypeValue()
public int getEnvironmentTypeValue()
Required. The EnvironmentType of the AdUnit
.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for environmentType.
|
getParserForType()
public Parser<AdUnitSize> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSize()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Size |
The size.
|
getSizeOrBuilder()
public SizeOrBuilder getSizeOrBuilder()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
hasSize()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the size field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AdUnitSize.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdUnitSize.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AdUnitSize.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides