media_file_error.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.ads.googleads.v11.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V11.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "MediaFileErrorProto";
  20. option java_package = "com.google.ads.googleads.v11.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V11::Errors";
  24. // Proto file describing media file errors.
  25. // Container for enum describing possible media file errors.
  26. message MediaFileErrorEnum {
  27. // Enum describing possible media file errors.
  28. enum MediaFileError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Cannot create a standard icon type.
  34. CANNOT_CREATE_STANDARD_ICON = 2;
  35. // May only select Standard Icons alone.
  36. CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3;
  37. // Image contains both a media file ID and data.
  38. CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4;
  39. // A media file with given type and reference ID already exists.
  40. DUPLICATE_MEDIA = 5;
  41. // A required field was not specified or is an empty string.
  42. EMPTY_FIELD = 6;
  43. // A media file may only be modified once per call.
  44. RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7;
  45. // Field is not supported for the media sub type.
  46. FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8;
  47. // The media file ID is invalid.
  48. INVALID_MEDIA_FILE_ID = 9;
  49. // The media subtype is invalid.
  50. INVALID_MEDIA_SUB_TYPE = 10;
  51. // The media file type is invalid.
  52. INVALID_MEDIA_FILE_TYPE = 11;
  53. // The mimetype is invalid.
  54. INVALID_MIME_TYPE = 12;
  55. // The media reference ID is invalid.
  56. INVALID_REFERENCE_ID = 13;
  57. // The YouTube video ID is invalid.
  58. INVALID_YOU_TUBE_ID = 14;
  59. // Media file has failed transcoding
  60. MEDIA_FILE_FAILED_TRANSCODING = 15;
  61. // Media file has not been transcoded.
  62. MEDIA_NOT_TRANSCODED = 16;
  63. // The media type does not match the actual media file's type.
  64. MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17;
  65. // None of the fields have been specified.
  66. NO_FIELDS_SPECIFIED = 18;
  67. // One of reference ID or media file ID must be specified.
  68. NULL_REFERENCE_ID_AND_MEDIA_ID = 19;
  69. // The string has too many characters.
  70. TOO_LONG = 20;
  71. // The specified type is not supported.
  72. UNSUPPORTED_TYPE = 21;
  73. // YouTube is unavailable for requesting video data.
  74. YOU_TUBE_SERVICE_UNAVAILABLE = 22;
  75. // The YouTube video has a non positive duration.
  76. YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23;
  77. // The YouTube video ID is syntactically valid but the video was not found.
  78. YOU_TUBE_VIDEO_NOT_FOUND = 24;
  79. }
  80. }