Class RichMediaStudioChildAssetProperty.Builder (0.62.0)

public static final class RichMediaStudioChildAssetProperty.Builder extends GeneratedMessage.Builder<RichMediaStudioChildAssetProperty.Builder> implements RichMediaStudioChildAssetPropertyOrBuilder

Represents a child asset in RichMediaStudioCreative.

Protobuf type google.ads.admanager.v1.RichMediaStudioChildAssetProperty

Static Methods

getDescriptor()

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

Methods

build()

public RichMediaStudioChildAssetProperty build()
Returns
Type Description
RichMediaStudioChildAssetProperty

buildPartial()

public RichMediaStudioChildAssetProperty buildPartial()
Returns
Type Description
RichMediaStudioChildAssetProperty

clear()

public RichMediaStudioChildAssetProperty.Builder clear()
Returns
Type Description
RichMediaStudioChildAssetProperty.Builder
Overrides

clearDisplayName()

public RichMediaStudioChildAssetProperty.Builder clearDisplayName()

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

clearHeight()

public RichMediaStudioChildAssetProperty.Builder clearHeight()

Output only. Height of the widget in pixels.

optional int32 height = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

clearTotalFileSize()

public RichMediaStudioChildAssetProperty.Builder clearTotalFileSize()

Output only. The total size of the asset in bytes.

optional int64 total_file_size = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

clearType()

public RichMediaStudioChildAssetProperty.Builder clearType()

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

clearUrl()

public RichMediaStudioChildAssetProperty.Builder clearUrl()

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

clearWidth()

public RichMediaStudioChildAssetProperty.Builder clearWidth()

Output only. Width of the widget in pixels.

optional int32 width = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

getDefaultInstanceForType()

public RichMediaStudioChildAssetProperty getDefaultInstanceForType()
Returns
Type Description
RichMediaStudioChildAssetProperty

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getHeight()

public int getHeight()

Output only. Height of the widget in pixels.

optional int32 height = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The height.

getTotalFileSize()

public long getTotalFileSize()

Output only. The total size of the asset in bytes.

optional int64 total_file_size = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The totalFileSize.

getType()

public RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType getType()

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType

The type.

getTypeValue()

public int getTypeValue()

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

getUrl()

public String getUrl()

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for url.

getWidth()

public int getWidth()

Output only. Width of the widget in pixels.

optional int32 width = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The width.

hasDisplayName()

public boolean hasDisplayName()

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the displayName field is set.

hasHeight()

public boolean hasHeight()

Output only. Height of the widget in pixels.

optional int32 height = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the height field is set.

hasTotalFileSize()

public boolean hasTotalFileSize()

Output only. The total size of the asset in bytes.

optional int64 total_file_size = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the totalFileSize field is set.

hasType()

public boolean hasType()

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the type field is set.

hasUrl()

public boolean hasUrl()

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the url field is set.

hasWidth()

public boolean hasWidth()

Output only. Width of the widget in pixels.

optional int32 width = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the width field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RichMediaStudioChildAssetProperty other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDisplayName(String value)

public RichMediaStudioChildAssetProperty.Builder setDisplayName(String value)

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public RichMediaStudioChildAssetProperty.Builder setDisplayNameBytes(ByteString value)

Output only. The name of the asset as known by Rich Media Studio.

optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setHeight(int value)

public RichMediaStudioChildAssetProperty.Builder setHeight(int value)

Output only. Height of the widget in pixels.

optional int32 height = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The height to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setTotalFileSize(long value)

public RichMediaStudioChildAssetProperty.Builder setTotalFileSize(long value)

Output only. The total size of the asset in bytes.

optional int64 total_file_size = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The totalFileSize to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setType(RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType value)

public RichMediaStudioChildAssetProperty.Builder setType(RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType value)

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType

The type to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setTypeValue(int value)

public RichMediaStudioChildAssetProperty.Builder setTypeValue(int value)

Output only. Required file type of the asset.

optional .google.ads.admanager.v1.RichMediaStudioChildAssetTypeEnum.RichMediaStudioChildAssetType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setUrl(String value)

public RichMediaStudioChildAssetProperty.Builder setUrl(String value)

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public RichMediaStudioChildAssetProperty.Builder setUrlBytes(ByteString value)

Output only. The URL of the asset.

optional string url = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.

setWidth(int value)

public RichMediaStudioChildAssetProperty.Builder setWidth(int value)

Output only. Width of the widget in pixels.

optional int32 width = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The width to set.

Returns
Type Description
RichMediaStudioChildAssetProperty.Builder

This builder for chaining.