public static final class AdUnitSize.Builder extends GeneratedMessageV3.Builder<AdUnitSize.Builder> 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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCompanions(Iterable<? extends Size> values)
public AdUnitSize.Builder addAllCompanions(Iterable<? extends Size> values)
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 |
values |
Iterable<? extends com.google.ads.admanager.v1.Size>
|
addCompanions(Size value)
public AdUnitSize.Builder addCompanions(Size value)
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 |
value |
Size
|
addCompanions(Size.Builder builderForValue)
public AdUnitSize.Builder addCompanions(Size.Builder builderForValue)
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;
addCompanions(int index, Size value)
public AdUnitSize.Builder addCompanions(int index, Size value)
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;
Parameters |
Name |
Description |
index |
int
|
value |
Size
|
addCompanions(int index, Size.Builder builderForValue)
public AdUnitSize.Builder addCompanions(int index, Size.Builder builderForValue)
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;
addCompanionsBuilder()
public Size.Builder addCompanionsBuilder()
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;
addCompanionsBuilder(int index)
public Size.Builder addCompanionsBuilder(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdUnitSize.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AdUnitSize build()
buildPartial()
public AdUnitSize buildPartial()
clear()
public AdUnitSize.Builder clear()
Overrides
clearCompanions()
public AdUnitSize.Builder clearCompanions()
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;
clearEnvironmentType()
public AdUnitSize.Builder clearEnvironmentType()
Required. The EnvironmentType of the AdUnit
.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public AdUnitSize.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AdUnitSize.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSize()
public AdUnitSize.Builder clearSize()
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public AdUnitSize.Builder clone()
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 |
|
getCompanionsBuilder(int index)
public Size.Builder getCompanionsBuilder(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
|
getCompanionsBuilderList()
public List<Size.Builder> getCompanionsBuilderList()
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
getSizeBuilder()
public Size.Builder getSizeBuilder()
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()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdUnitSize other)
public AdUnitSize.Builder mergeFrom(AdUnitSize other)
public AdUnitSize.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdUnitSize.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSize(Size value)
public AdUnitSize.Builder mergeSize(Size value)
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Size
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdUnitSize.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCompanions(int index)
public AdUnitSize.Builder removeCompanions(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
|
setCompanions(int index, Size value)
public AdUnitSize.Builder setCompanions(int index, Size value)
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;
Parameters |
Name |
Description |
index |
int
|
value |
Size
|
setCompanions(int index, Size.Builder builderForValue)
public AdUnitSize.Builder setCompanions(int index, Size.Builder builderForValue)
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;
setEnvironmentType(EnvironmentTypeEnum.EnvironmentType value)
public AdUnitSize.Builder setEnvironmentType(EnvironmentTypeEnum.EnvironmentType value)
Required. The EnvironmentType of the AdUnit
.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];
setEnvironmentTypeValue(int value)
public AdUnitSize.Builder setEnvironmentTypeValue(int value)
Required. The EnvironmentType of the AdUnit
.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType environment_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for environmentType to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AdUnitSize.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdUnitSize.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSize(Size value)
public AdUnitSize.Builder setSize(Size value)
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Size
|
setSize(Size.Builder builderForValue)
public AdUnitSize.Builder setSize(Size.Builder builderForValue)
Required. The Size of the AdUnit.
.google.ads.admanager.v1.Size size = 1 [(.google.api.field_behavior) = REQUIRED];
setUnknownFields(UnknownFieldSet unknownFields)
public final AdUnitSize.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides