Interface MediaFileOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MediaFile,MediaFile.Builder
public interface MediaFileOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAudio()Output only.Output only.longOutput only.longgetId()Output only.getImage()Immutable.Immutable.Immutable.Immutable.Output only.intOutput only.getName()Immutable.com.google.protobuf.ByteStringImmutable.Immutable.com.google.protobuf.ByteStringImmutable.Immutable.com.google.protobuf.ByteStringImmutable.getType()Immutable.intImmutable.getVideo()Immutable.Immutable.booleanhasAudio()Output only.booleanOutput only.booleanhasId()Output only.booleanhasImage()Immutable.booleanImmutable.booleanhasName()Immutable.booleanImmutable.booleanhasVideo()Immutable.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getResourceName
String getResourceName()Immutable. The resource name of the media file. Media file resource names have the form: `customers/{customer_id}/mediaFiles/{media_file_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The resourceName.
-
getResourceNameBytes
com.google.protobuf.ByteString getResourceNameBytes()Immutable. The resource name of the media file. Media file resource names have the form: `customers/{customer_id}/mediaFiles/{media_file_id}`string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for resourceName.
-
hasId
boolean hasId()Output only. The ID of the media file.
optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the id field is set.
-
getId
long getId()Output only. The ID of the media file.
optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The id.
-
getTypeValue
int getTypeValue()Immutable. Type of the media file.
.google.ads.googleads.v18.enums.MediaTypeEnum.MediaType type = 5 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The enum numeric value on the wire for type.
-
getType
MediaTypeEnum.MediaType getType()Immutable. Type of the media file.
.google.ads.googleads.v18.enums.MediaTypeEnum.MediaType type = 5 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The type.
-
getMimeTypeValue
int getMimeTypeValue()Output only. The mime type of the media file.
.google.ads.googleads.v18.enums.MimeTypeEnum.MimeType mime_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for mimeType.
-
getMimeType
MimeTypeEnum.MimeType getMimeType()Output only. The mime type of the media file.
.google.ads.googleads.v18.enums.MimeTypeEnum.MimeType mime_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The mimeType.
-
hasSourceUrl
boolean hasSourceUrl()Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE.
optional string source_url = 13 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- Whether the sourceUrl field is set.
-
getSourceUrl
String getSourceUrl()Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE.
optional string source_url = 13 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The sourceUrl.
-
getSourceUrlBytes
com.google.protobuf.ByteString getSourceUrlBytes()Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE.
optional string source_url = 13 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for sourceUrl.
-
hasName
boolean hasName()Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media.
optional string name = 14 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- Whether the name field is set.
-
getName
String getName()Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media.
optional string name = 14 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media.
optional string name = 14 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
hasFileSize
boolean hasFileSize()Output only. The size of the media file in bytes.
optional int64 file_size = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the fileSize field is set.
-
getFileSize
long getFileSize()Output only. The size of the media file in bytes.
optional int64 file_size = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The fileSize.
-
hasImage
boolean hasImage()Immutable. Encapsulates an Image.
.google.ads.googleads.v18.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- Whether the image field is set.
-
getImage
MediaImage getImage()Immutable. Encapsulates an Image.
.google.ads.googleads.v18.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The image.
-
getImageOrBuilder
MediaImageOrBuilder getImageOrBuilder()Immutable. Encapsulates an Image.
.google.ads.googleads.v18.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE]; -
hasMediaBundle
boolean hasMediaBundle()Immutable. A ZIP archive media the content of which contains HTML5 assets.
.google.ads.googleads.v18.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- Whether the mediaBundle field is set.
-
getMediaBundle
MediaBundle getMediaBundle()Immutable. A ZIP archive media the content of which contains HTML5 assets.
.google.ads.googleads.v18.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The mediaBundle.
-
getMediaBundleOrBuilder
MediaBundleOrBuilder getMediaBundleOrBuilder()Immutable. A ZIP archive media the content of which contains HTML5 assets.
.google.ads.googleads.v18.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE]; -
hasAudio
boolean hasAudio()Output only. Encapsulates an Audio.
.google.ads.googleads.v18.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the audio field is set.
-
getAudio
MediaAudio getAudio()Output only. Encapsulates an Audio.
.google.ads.googleads.v18.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The audio.
-
getAudioOrBuilder
MediaAudioOrBuilder getAudioOrBuilder()Output only. Encapsulates an Audio.
.google.ads.googleads.v18.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasVideo
boolean hasVideo()Immutable. Encapsulates a Video.
.google.ads.googleads.v18.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- Whether the video field is set.
-
getVideo
MediaVideo getVideo()Immutable. Encapsulates a Video.
.google.ads.googleads.v18.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The video.
-
getVideoOrBuilder
MediaVideoOrBuilder getVideoOrBuilder()Immutable. Encapsulates a Video.
.google.ads.googleads.v18.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE]; -
getMediatypeCase
MediaFile.MediatypeCase getMediatypeCase()
-