public
final
class
Placement
extends
GeneratedMessageV3
implements
PlacementOrBuilder
The Placement
resource.
Protobuf type google.ads.admanager.v1.Placement
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PlacementImplements
PlacementOrBuilderStatic Fields
DESCRIPTION_FIELD_NUMBER
public
static
final
int
DESCRIPTION_FIELD_NUMBER
DISPLAY_NAME_FIELD_NUMBER
public
static
final
int
DISPLAY_NAME_FIELD_NUMBER
NAME_FIELD_NUMBER
public
static
final
int
NAME_FIELD_NUMBER
PLACEMENT_CODE_FIELD_NUMBER
public
static
final
int
PLACEMENT_CODE_FIELD_NUMBER
PLACEMENT_ID_FIELD_NUMBER
public
static
final
int
PLACEMENT_ID_FIELD_NUMBER
STATUS_FIELD_NUMBER
public
static
final
int
STATUS_FIELD_NUMBER
TARGETED_AD_UNITS_FIELD_NUMBER
public
static
final
int
TARGETED_AD_UNITS_FIELD_NUMBER
UPDATE_TIME_FIELD_NUMBER
public
static
final
int
UPDATE_TIME_FIELD_NUMBER
Static Methods
getDefaultInstance()
public
static
Placement
getDefaultInstance
()
getDescriptor()
public
static
final
Descriptors
.
Descriptor
getDescriptor
()
newBuilder()
public
static
Placement
.
Builder
newBuilder
()
newBuilder(Placement prototype)
public
static
Placement
.
Builder
newBuilder
(
Placement
prototype
)
parseDelimitedFrom(InputStream input)
public
static
Placement
parseDelimitedFrom
(
InputStream
input
)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseDelimitedFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(byte[] data)
public
static
Placement
parseFrom
(
byte
[]
data
)
data
byte
[]
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseFrom
(
byte
[]
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteString data)
public
static
Placement
parseFrom
(
ByteString
data
)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseFrom
(
ByteString
data
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(CodedInputStream input)
public
static
Placement
parseFrom
(
CodedInputStream
input
)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseFrom
(
CodedInputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(InputStream input)
public
static
Placement
parseFrom
(
InputStream
input
)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseFrom
(
InputStream
input
,
ExtensionRegistryLite
extensionRegistry
)
parseFrom(ByteBuffer data)
public
static
Placement
parseFrom
(
ByteBuffer
data
)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public
static
Placement
parseFrom
(
ByteBuffer
data
,
ExtensionRegistryLite
extensionRegistry
)
parser()
public
static
Parser<Placement>
parser
()
Methods
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getDefaultInstanceForType()
public
Placement
getDefaultInstanceForType
()
getDescription()
public
String
getDescription
()
Optional. A description of the Placement. This value is optional and its maximum length is 65,535 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
getDescriptionBytes()
public
ByteString
getDescriptionBytes
()
Optional. A description of the Placement. This value is optional and its maximum length is 65,535 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
getDisplayName()
public
String
getDisplayName
()
Required. The display name of the placement. Its maximum length is 255 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
getDisplayNameBytes()
public
ByteString
getDisplayNameBytes
()
Required. The display name of the placement. Its maximum length is 255 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
getName()
public
String
getName
()
Identifier. The resource name of the Placement
.
Format: networks/{network_code}/placements/{placement_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getNameBytes()
public
ByteString
getNameBytes
()
Identifier. The resource name of the Placement
.
Format: networks/{network_code}/placements/{placement_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
getParserForType()
public
Parser<Placement>
getParserForType
()
getPlacementCode()
public
String
getPlacementCode
()
Output only. A string used to uniquely identify the Placement for purposes of serving the ad. This attribute is read-only and is assigned by Google when a placement is created.
string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPlacementCodeBytes()
public
ByteString
getPlacementCodeBytes
()
Output only. A string used to uniquely identify the Placement for purposes of serving the ad. This attribute is read-only and is assigned by Google when a placement is created.
string placement_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPlacementId()
public
long
getPlacementId
()
Output only. Placement
ID.
int64 placement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public
int
getSerializedSize
()
getStatus()
public
PlacementStatusEnum
.
PlacementStatus
getStatus
()
Output only. The status of the Placement. This attribute is read-only.
.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public
int
getStatusValue
()
Output only. The status of the Placement. This attribute is read-only.
.google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTargetedAdUnits(int index)
public
String
getTargetedAdUnits
(
int
index
)
Optional. The resource names of AdUnits that constitute the Placement. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getTargetedAdUnitsBytes(int index)
public
ByteString
getTargetedAdUnitsBytes
(
int
index
)
Optional. The resource names of AdUnits that constitute the Placement. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getTargetedAdUnitsCount()
public
int
getTargetedAdUnitsCount
()
Optional. The resource names of AdUnits that constitute the Placement. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getTargetedAdUnitsList()
public
ProtocolStringList
getTargetedAdUnitsList
()
Optional. The resource names of AdUnits that constitute the Placement. Format: "networks/{network_code}/adUnits/{ad_unit_id}"
repeated string targeted_ad_units = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getUpdateTime()
public
Timestamp
getUpdateTime
()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder()
public
TimestampOrBuilder
getUpdateTimeOrBuilder
()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime()
public
boolean
hasUpdateTime
()
Output only. The instant this Placement was last modified.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hashCode()
public
int
hashCode
()
internalGetFieldAccessorTable()
protected
GeneratedMessageV3
.
FieldAccessorTable
internalGetFieldAccessorTable
()
isInitialized()
public
final
boolean
isInitialized
()
newBuilderForType()
public
Placement
.
Builder
newBuilderForType
()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected
Placement
.
Builder
newBuilderForType
(
GeneratedMessageV3
.
BuilderParent
parent
)
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected
Object
newInstance
(
GeneratedMessageV3
.
UnusedPrivateParameter
unused
)
toBuilder()
public
Placement
.
Builder
toBuilder
()
writeTo(CodedOutputStream output)
public
void
writeTo
(
CodedOutputStream
output
)