Class PreviewLineItemCreativeAssociationResponse.Preview.Builder (0.62.0)

public static final class PreviewLineItemCreativeAssociationResponse.Preview.Builder extends GeneratedMessage.Builder<PreviewLineItemCreativeAssociationResponse.Preview.Builder> implements PreviewLineItemCreativeAssociationResponse.PreviewOrBuilder

Represents the Creative and its corresponding preview URL. */

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder clear()
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder
Overrides

clearNativeStyle()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder clearNativeStyle()

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
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

clearOnSitePreviewUrl()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder clearOnSitePreviewUrl()

The URL for previewing this creative.

string on_site_preview_url = 2;

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

clearPreviewType()

public PreviewLineItemCreativeAssociationResponse.Preview.Builder clearPreviewType()

Represents the type of preview.

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

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PreviewLineItemCreativeAssociationResponse.Preview other)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder mergeFrom(PreviewLineItemCreativeAssociationResponse.Preview other)
Parameter
Name Description
other PreviewLineItemCreativeAssociationResponse.Preview
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder
Overrides

setNativeStyle(String value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setNativeStyle(String value)

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;

Parameter
Name Description
value String

The nativeStyle to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

setNativeStyleBytes(ByteString value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setNativeStyleBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for nativeStyle to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

setOnSitePreviewUrl(String value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setOnSitePreviewUrl(String value)

The URL for previewing this creative.

string on_site_preview_url = 2;

Parameter
Name Description
value String

The onSitePreviewUrl to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

setOnSitePreviewUrlBytes(ByteString value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setOnSitePreviewUrlBytes(ByteString value)

The URL for previewing this creative.

string on_site_preview_url = 2;

Parameter
Name Description
value ByteString

The bytes for onSitePreviewUrl to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

setPreviewType(PreviewLineItemCreativeAssociationResponse.PreviewType value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setPreviewType(PreviewLineItemCreativeAssociationResponse.PreviewType value)

Represents the type of preview.

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

Parameter
Name Description
value PreviewLineItemCreativeAssociationResponse.PreviewType

The previewType to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.

setPreviewTypeValue(int value)

public PreviewLineItemCreativeAssociationResponse.Preview.Builder setPreviewTypeValue(int value)

Represents the type of preview.

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

Parameter
Name Description
value int

The enum numeric value on the wire for previewType to set.

Returns
Type Description
PreviewLineItemCreativeAssociationResponse.Preview.Builder

This builder for chaining.