public final class NativeStyle extends GeneratedMessage implements NativeStyleOrBuilder
Used to define the look and feel of native ads, for both web and apps. Native
styles determine how native creatives look for a segment of inventory.
Protobuf type google.ads.admanager.v1.NativeStyle
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CREATIVE_TEMPLATE_FIELD_NUMBER
public static final int CREATIVE_TEMPLATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CSS_SNIPPET_FIELD_NUMBER
public static final int CSS_SNIPPET_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HTML_SNIPPET_FIELD_NUMBER
public static final int HTML_SNIPPET_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TARGETING_FIELD_NUMBER
public static final int TARGETING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static NativeStyle getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static NativeStyle.Builder newBuilder()
newBuilder(NativeStyle prototype)
public static NativeStyle.Builder newBuilder(NativeStyle prototype)
public static NativeStyle parseDelimitedFrom(InputStream input)
public static NativeStyle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static NativeStyle parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NativeStyle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static NativeStyle parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NativeStyle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NativeStyle parseFrom(CodedInputStream input)
public static NativeStyle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static NativeStyle parseFrom(InputStream input)
public static NativeStyle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static NativeStyle parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NativeStyle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<NativeStyle> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCreativeTemplate()
public String getCreativeTemplate()
Required. Immutable. The creative template this native style is associated
with. Format:
"networks/{network_code}/creativeTemplates/{creative_template}"
optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The creativeTemplate.
|
getCreativeTemplateBytes()
public ByteString getCreativeTemplateBytes()
Required. Immutable. The creative template this native style is associated
with. Format:
"networks/{network_code}/creativeTemplates/{creative_template}"
optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for creativeTemplate.
|
getCssSnippet()
public String getCssSnippet()
Optional. The CSS snippet of the native style, with placeholders for the
associated variables.
optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The cssSnippet.
|
getCssSnippetBytes()
public ByteString getCssSnippetBytes()
Optional. The CSS snippet of the native style, with placeholders for the
associated variables.
optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for cssSnippet.
|
getDefaultInstanceForType()
public NativeStyle getDefaultInstanceForType()
getDisplayName()
public String getDisplayName()
Required. The display name of the native style. This attribute has a
maximum length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The display name of the native style. This attribute has a
maximum length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
getHtmlSnippet()
public String getHtmlSnippet()
Optional. The HTML snippet of the native style with placeholders for the
associated variables.
optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The htmlSnippet.
|
getHtmlSnippetBytes()
public ByteString getHtmlSnippetBytes()
Optional. The HTML snippet of the native style with placeholders for the
associated variables.
optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for htmlSnippet.
|
getName()
Identifier. The resource name of the NativeStyle.
Format: networks/{network_code}/nativeStyles/{native_style_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. The resource name of the NativeStyle.
Format: networks/{network_code}/nativeStyles/{native_style_id}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<NativeStyle> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSize()
Required. The size of the native style.
.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
Size |
The size.
|
getSizeOrBuilder()
public SizeOrBuilder getSizeOrBuilder()
Required. The size of the native style.
.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];
getStatus()
public NativeStyleStatusEnum.NativeStyleStatus getStatus()
Output only. The status of the native style.
optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusValue()
public int getStatusValue()
Output only. The status of the native style.
optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for status.
|
getTargeting()
public Targeting getTargeting()
Optional. The targeting criteria for this native style.
.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Targeting |
The targeting.
|
getTargetingOrBuilder()
public TargetingOrBuilder getTargetingOrBuilder()
Optional. The targeting criteria for this native style.
.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];
hasCreativeTemplate()
public boolean hasCreativeTemplate()
Required. Immutable. The creative template this native style is associated
with. Format:
"networks/{network_code}/creativeTemplates/{creative_template}"
optional string creative_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the creativeTemplate field is set.
|
hasCssSnippet()
public boolean hasCssSnippet()
Optional. The CSS snippet of the native style, with placeholders for the
associated variables.
optional string css_snippet = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the cssSnippet field is set.
|
hasDisplayName()
public boolean hasDisplayName()
Required. The display name of the native style. This attribute has a
maximum length of 255 characters.
optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the displayName field is set.
|
hasHtmlSnippet()
public boolean hasHtmlSnippet()
Optional. The HTML snippet of the native style with placeholders for the
associated variables.
optional string html_snippet = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the htmlSnippet field is set.
|
hasSize()
Required. The size of the native style.
.google.ads.admanager.v1.Size size = 12 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the size field is set.
|
hasStatus()
public boolean hasStatus()
Output only. The status of the native style.
optional .google.ads.admanager.v1.NativeStyleStatusEnum.NativeStyleStatus status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the status field is set.
|
hasTargeting()
public boolean hasTargeting()
Optional. The targeting criteria for this native style.
.google.ads.admanager.v1.Targeting targeting = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the targeting field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public NativeStyle.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected NativeStyle.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public NativeStyle.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides