public final class SiteCompanionSetting
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Campaign Manager 360 API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SiteCompanionSetting() |
Modifier and Type | Method and Description |
---|---|
SiteCompanionSetting |
clone() |
Boolean |
getCompanionsDisabled()
Whether companions are disabled for this site template.
|
List<Size> |
getEnabledSizes()
Allowlist of companion sizes to be served via this site template.
|
Boolean |
getImageOnly()
Whether to serve only static images as companions.
|
String |
getKind()
Identifies what kind of resource this is.
|
SiteCompanionSetting |
set(String fieldName,
Object value) |
SiteCompanionSetting |
setCompanionsDisabled(Boolean companionsDisabled)
Whether companions are disabled for this site template.
|
SiteCompanionSetting |
setEnabledSizes(List<Size> enabledSizes)
Allowlist of companion sizes to be served via this site template.
|
SiteCompanionSetting |
setImageOnly(Boolean imageOnly)
Whether to serve only static images as companions.
|
SiteCompanionSetting |
setKind(String kind)
Identifies what kind of resource this is.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getCompanionsDisabled()
null
for nonepublic SiteCompanionSetting setCompanionsDisabled(Boolean companionsDisabled)
companionsDisabled
- companionsDisabled or null
for nonepublic List<Size> getEnabledSizes()
null
for nonepublic SiteCompanionSetting setEnabledSizes(List<Size> enabledSizes)
enabledSizes
- enabledSizes or null
for nonepublic Boolean getImageOnly()
null
for nonepublic SiteCompanionSetting setImageOnly(Boolean imageOnly)
imageOnly
- imageOnly or null
for nonepublic String getKind()
null
for nonepublic SiteCompanionSetting setKind(String kind)
kind
- kind or null
for nonepublic SiteCompanionSetting set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public SiteCompanionSetting clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.