Class PreviewLineItemCreativeAssociationResponse.Preview (0.62.0)

public static final class PreviewLineItemCreativeAssociationResponse.Preview extends GeneratedMessage implements PreviewLineItemCreativeAssociationResponse.PreviewOrBuilder

Represents the Creative and its corresponding preview URL. */

Protobuf type google.ads.admanager.v1.PreviewLineItemCreativeAssociationResponse.Preview

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > PreviewLineItemCreativeAssociationResponse.Preview

Static Fields

NATIVE_STYLE_FIELD_NUMBER

public static final int NATIVE_STYLE_FIELD_NUMBER
Field Value
Type Description
int

ON_SITE_PREVIEW_URL_FIELD_NUMBER

public static final int ON_SITE_PREVIEW_URL_FIELD_NUMBER
Field Value
Type Description
int

PREVIEW_TYPE_FIELD_NUMBER

public static final int PREVIEW_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PreviewLineItemCreativeAssociationResponse.Preview getDefaultInstance()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PreviewLineItemCreativeAssociationResponse.Preview.Builder newBuilder()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

newBuilder(PreviewLineItemCreativeAssociationResponse.Preview prototype)

public static PreviewLineItemCreativeAssociationResponse.Preview.Builder newBuilder(PreviewLineItemCreativeAssociationResponse.Preview prototype)
Parameter
Name Description
prototype PreviewLineItemCreativeAssociationResponse.Preview
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

parseDelimitedFrom(InputStream input)

public static PreviewLineItemCreativeAssociationResponse.Preview parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PreviewLineItemCreativeAssociationResponse.Preview parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PreviewLineItemCreativeAssociationResponse.Preview> parser()
Returns
Type Description
Parser<Preview>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PreviewLineItemCreativeAssociationResponse.Preview getDefaultInstanceForType()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview

getNativeStyle()

public String getNativeStyle()

The resource names of the NativeStyle for the preview. Only relevant when PreviewType is NATIVE. Format: networks/{network_code}/nativeStyles/{native_style_id}

string native_style = 3;

Returns
Type Description
String

The nativeStyle.

getNativeStyleBytes()

public ByteString getNativeStyleBytes()

The resource names of the NativeStyle for the preview. Only relevant when PreviewType is NATIVE. Format: networks/{network_code}/nativeStyles/{native_style_id}

string native_style = 3;

Returns
Type Description
ByteString

The bytes for nativeStyle.

getOnSitePreviewUrl()

public String getOnSitePreviewUrl()

The URL for previewing this creative.

string on_site_preview_url = 2;

Returns
Type Description
String

The onSitePreviewUrl.

getOnSitePreviewUrlBytes()

public ByteString getOnSitePreviewUrlBytes()

The URL for previewing this creative.

string on_site_preview_url = 2;

Returns
Type Description
ByteString

The bytes for onSitePreviewUrl.

getParserForType()

public Parser<PreviewLineItemCreativeAssociationResponse.Preview> getParserForType()
Returns
Type Description
Parser<Preview>
Overrides

getPreviewType()

public PreviewLineItemCreativeAssociationResponse.PreviewType getPreviewType()

Represents the type of preview.

.google.ads.admanager.v1.PreviewLineItemCreativeAssociationResponse.PreviewType preview_type = 1;

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.PreviewType

The previewType.

getPreviewTypeValue()

public int getPreviewTypeValue()

Represents the type of preview.

.google.ads.admanager.v1.PreviewLineItemCreativeAssociationResponse.PreviewType preview_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for previewType.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder newBuilderForType()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PreviewLineItemCreativeAssociationResponse.Preview.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder
Overrides

toBuilder()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder toBuilder()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException