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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AdUnitSizeImplements
AdUnitSizeOrBuilderStatic Fields
COMPANIONS_FIELD_NUMBER
public
static
final
int
COMPANIONS_FIELD_NUMBER
ENVIRONMENT_TYPE_FIELD_NUMBER
public
static
final
int
ENVIRONMENT_TYPE_FIELD_NUMBER
SIZE_FIELD_NUMBER
public
static
final
int
SIZE_FIELD_NUMBER
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
)
parseDelimitedFrom(InputStream input)
public
static
AdUnitSize
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
AdUnitSize
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
AdUnitSize
parseFrom
(
byte
[]
data
)
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
)
parseFrom(CodedInputStream input)
public
static
AdUnitSize
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
AdUnitSize
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
AdUnitSize
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
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
)
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;
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;
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;
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;
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];
getParserForType()
public
Parser<AdUnitSize>
getParserForType
()
getSerializedSize()
public
int
getSerializedSize
()
getSize()
public
Size
getSize
()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
getSizeOrBuilder()
public
SizeOrBuilder
getSizeOrBuilder
()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
hasSize()
public
boolean
hasSize
()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
AdUnitSize
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
AdUnitSize
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
AdUnitSize
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)