Class MediaFile

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v21.resources.MediaFile
All Implemented Interfaces:
MediaFileOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class MediaFile extends com.google.protobuf.GeneratedMessageV3 implements MediaFileOrBuilder
 A media file.
 
Protobuf type google.ads.googleads.v21.resources.MediaFile
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A media file.
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter, com.google.protobuf.GeneratedMessage.ExtendableMessage.FieldEntry

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Output only.
    Output only.
    static MediaFile
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    long
    Output only.
    long
    Output only.
    Immutable.
    Immutable.
    Immutable.
    Immutable.
     
    Output only.
    int
    Output only.
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    com.google.protobuf.Parser<MediaFile>
     
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    int
     
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    Immutable.
    int
    Immutable.
    Immutable.
    Immutable.
    boolean
    Output only.
    boolean
    Output only.
    int
     
    boolean
    Output only.
    boolean
    Immutable.
    boolean
    Immutable.
    boolean
    Immutable.
    boolean
    Immutable.
    boolean
    Immutable.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(MediaFile prototype)
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static MediaFile
     
    static MediaFile
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static MediaFile
    parseFrom(byte[] data)
     
    static MediaFile
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static MediaFile
    parseFrom(com.google.protobuf.ByteString data)
     
    static MediaFile
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static MediaFile
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static MediaFile
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static MediaFile
     
    static MediaFile
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static MediaFile
     
    static MediaFile
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<MediaFile>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    extensionsAreInitialized, extensionsIterator, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getMediatypeCase

      public MediaFile.MediatypeCase getMediatypeCase()
      Specified by:
      getMediatypeCase in interface MediaFileOrBuilder
    • getResourceName

      public 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) = { ... }
      Specified by:
      getResourceName in interface MediaFileOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public 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) = { ... }
      Specified by:
      getResourceNameBytes in interface MediaFileOrBuilder
      Returns:
      The bytes for resourceName.
    • hasId

      public boolean hasId()
       Output only. The ID of the media file.
       
      optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasId in interface MediaFileOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. The ID of the media file.
       
      optional int64 id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface MediaFileOrBuilder
      Returns:
      The id.
    • getTypeValue

      public int getTypeValue()
       Immutable. Type of the media file.
       
      .google.ads.googleads.v21.enums.MediaTypeEnum.MediaType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface MediaFileOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public MediaTypeEnum.MediaType getType()
       Immutable. Type of the media file.
       
      .google.ads.googleads.v21.enums.MediaTypeEnum.MediaType type = 5 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface MediaFileOrBuilder
      Returns:
      The type.
    • getMimeTypeValue

      public int getMimeTypeValue()
       Output only. The mime type of the media file.
       
      .google.ads.googleads.v21.enums.MimeTypeEnum.MimeType mime_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMimeTypeValue in interface MediaFileOrBuilder
      Returns:
      The enum numeric value on the wire for mimeType.
    • getMimeType

      public MimeTypeEnum.MimeType getMimeType()
       Output only. The mime type of the media file.
       
      .google.ads.googleads.v21.enums.MimeTypeEnum.MimeType mime_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMimeType in interface MediaFileOrBuilder
      Returns:
      The mimeType.
    • hasSourceUrl

      public 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];
      Specified by:
      hasSourceUrl in interface MediaFileOrBuilder
      Returns:
      Whether the sourceUrl field is set.
    • getSourceUrl

      public 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];
      Specified by:
      getSourceUrl in interface MediaFileOrBuilder
      Returns:
      The sourceUrl.
    • getSourceUrlBytes

      public 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];
      Specified by:
      getSourceUrlBytes in interface MediaFileOrBuilder
      Returns:
      The bytes for sourceUrl.
    • hasName

      public 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];
      Specified by:
      hasName in interface MediaFileOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public 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];
      Specified by:
      getName in interface MediaFileOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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];
      Specified by:
      getNameBytes in interface MediaFileOrBuilder
      Returns:
      The bytes for name.
    • hasFileSize

      public boolean hasFileSize()
       Output only. The size of the media file in bytes.
       
      optional int64 file_size = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFileSize in interface MediaFileOrBuilder
      Returns:
      Whether the fileSize field is set.
    • getFileSize

      public long getFileSize()
       Output only. The size of the media file in bytes.
       
      optional int64 file_size = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileSize in interface MediaFileOrBuilder
      Returns:
      The fileSize.
    • hasImage

      public boolean hasImage()
       Immutable. Encapsulates an Image.
       
      .google.ads.googleads.v21.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasImage in interface MediaFileOrBuilder
      Returns:
      Whether the image field is set.
    • getImage

      public MediaImage getImage()
       Immutable. Encapsulates an Image.
       
      .google.ads.googleads.v21.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getImage in interface MediaFileOrBuilder
      Returns:
      The image.
    • getImageOrBuilder

      public MediaImageOrBuilder getImageOrBuilder()
       Immutable. Encapsulates an Image.
       
      .google.ads.googleads.v21.resources.MediaImage image = 3 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getImageOrBuilder in interface MediaFileOrBuilder
    • hasMediaBundle

      public boolean hasMediaBundle()
       Immutable. A ZIP archive media the content of which contains HTML5
       assets.
       
      .google.ads.googleads.v21.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasMediaBundle in interface MediaFileOrBuilder
      Returns:
      Whether the mediaBundle field is set.
    • getMediaBundle

      public MediaBundle getMediaBundle()
       Immutable. A ZIP archive media the content of which contains HTML5
       assets.
       
      .google.ads.googleads.v21.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMediaBundle in interface MediaFileOrBuilder
      Returns:
      The mediaBundle.
    • getMediaBundleOrBuilder

      public MediaBundleOrBuilder getMediaBundleOrBuilder()
       Immutable. A ZIP archive media the content of which contains HTML5
       assets.
       
      .google.ads.googleads.v21.resources.MediaBundle media_bundle = 4 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getMediaBundleOrBuilder in interface MediaFileOrBuilder
    • hasAudio

      public boolean hasAudio()
       Output only. Encapsulates an Audio.
       
      .google.ads.googleads.v21.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasAudio in interface MediaFileOrBuilder
      Returns:
      Whether the audio field is set.
    • getAudio

      public MediaAudio getAudio()
       Output only. Encapsulates an Audio.
       
      .google.ads.googleads.v21.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudio in interface MediaFileOrBuilder
      Returns:
      The audio.
    • getAudioOrBuilder

      public MediaAudioOrBuilder getAudioOrBuilder()
       Output only. Encapsulates an Audio.
       
      .google.ads.googleads.v21.resources.MediaAudio audio = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAudioOrBuilder in interface MediaFileOrBuilder
    • hasVideo

      public boolean hasVideo()
       Immutable. Encapsulates a Video.
       
      .google.ads.googleads.v21.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasVideo in interface MediaFileOrBuilder
      Returns:
      Whether the video field is set.
    • getVideo

      public MediaVideo getVideo()
       Immutable. Encapsulates a Video.
       
      .google.ads.googleads.v21.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideo in interface MediaFileOrBuilder
      Returns:
      The video.
    • getVideoOrBuilder

      public MediaVideoOrBuilder getVideoOrBuilder()
       Immutable. Encapsulates a Video.
       
      .google.ads.googleads.v21.resources.MediaVideo video = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getVideoOrBuilder in interface MediaFileOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MediaFile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MediaFile parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MediaFile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MediaFile parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MediaFile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MediaFile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MediaFile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MediaFile.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MediaFile.Builder newBuilder()
    • newBuilder

      public static MediaFile.Builder newBuilder(MediaFile prototype)
    • toBuilder

      public MediaFile.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MediaFile.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MediaFile getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MediaFile> parser()
    • getParserForType

      public com.google.protobuf.Parser<MediaFile> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MediaFile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder