Interface NewMediaItemResultOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    NewMediaItemResult, NewMediaItemResult.Builder

    public interface NewMediaItemResultOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      MediaItem getMediaItem()
      Media item created with the upload token.
      MediaItemOrBuilder getMediaItemOrBuilder()
      Media item created with the upload token.
      com.google.rpc.Status getStatus()
      If an error occurred during the creation of this media item, this field is populated with information related to the error.
      com.google.rpc.StatusOrBuilder getStatusOrBuilder()
      If an error occurred during the creation of this media item, this field is populated with information related to the error.
      java.lang.String getUploadToken()
      The upload token used to create this new media item.
      com.google.protobuf.ByteString getUploadTokenBytes()
      The upload token used to create this new media item.
      boolean hasMediaItem()
      Media item created with the upload token.
      boolean hasStatus()
      If an error occurred during the creation of this media item, this field is populated with information related to the error.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getUploadToken

        java.lang.String getUploadToken()
         The upload token used to create this new media item.
         
        string upload_token = 1;
        Returns:
        The uploadToken.
      • getUploadTokenBytes

        com.google.protobuf.ByteString getUploadTokenBytes()
         The upload token used to create this new media item.
         
        string upload_token = 1;
        Returns:
        The bytes for uploadToken.
      • hasStatus

        boolean hasStatus()
         If an error occurred during the creation of this media item, this field
         is  populated with information related to the error. For details regarding
         this field, see <a href="#Status">Status</a>.
         
        .google.rpc.Status status = 2;
        Returns:
        Whether the status field is set.
      • getStatus

        com.google.rpc.Status getStatus()
         If an error occurred during the creation of this media item, this field
         is  populated with information related to the error. For details regarding
         this field, see <a href="#Status">Status</a>.
         
        .google.rpc.Status status = 2;
        Returns:
        The status.
      • getStatusOrBuilder

        com.google.rpc.StatusOrBuilder getStatusOrBuilder()
         If an error occurred during the creation of this media item, this field
         is  populated with information related to the error. For details regarding
         this field, see <a href="#Status">Status</a>.
         
        .google.rpc.Status status = 2;
      • hasMediaItem

        boolean hasMediaItem()
         Media item created with the upload token. It's populated if no errors
         occurred and the media item was created successfully.
         
        .google.photos.types.MediaItem media_item = 3;
        Returns:
        Whether the mediaItem field is set.
      • getMediaItem

        MediaItem getMediaItem()
         Media item created with the upload token. It's populated if no errors
         occurred and the media item was created successfully.
         
        .google.photos.types.MediaItem media_item = 3;
        Returns:
        The mediaItem.
      • getMediaItemOrBuilder

        MediaItemOrBuilder getMediaItemOrBuilder()
         Media item created with the upload token. It's populated if no errors
         occurred and the media item was created successfully.
         
        .google.photos.types.MediaItem media_item = 3;