com.google.ads.googleads.v17.errors.MediaUploadErrorEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/errors/media_upload_error.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.errors;
/**
*
* Container for enum describing possible media uploading errors.
*
*
* Protobuf type {@code google.ads.googleads.v17.errors.MediaUploadErrorEnum}
*/
public final class MediaUploadErrorEnum extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.errors.MediaUploadErrorEnum)
MediaUploadErrorEnumOrBuilder {
private static final long serialVersionUID = 0L;
// Use MediaUploadErrorEnum.newBuilder() to construct.
private MediaUploadErrorEnum(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MediaUploadErrorEnum() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MediaUploadErrorEnum();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorProto.internal_static_google_ads_googleads_v17_errors_MediaUploadErrorEnum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorProto.internal_static_google_ads_googleads_v17_errors_MediaUploadErrorEnum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.class, com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.Builder.class);
}
/**
*
* Enum describing possible media uploading errors.
*
*
* Protobuf enum {@code google.ads.googleads.v17.errors.MediaUploadErrorEnum.MediaUploadError}
*/
public enum MediaUploadError
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Enum unspecified.
*
*
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
*
* The received error code is not known in this version.
*
*
* UNKNOWN = 1;
*/
UNKNOWN(1),
/**
*
* The uploaded file is too big.
*
*
* FILE_TOO_BIG = 2;
*/
FILE_TOO_BIG(2),
/**
*
* Image data is unparseable.
*
*
* UNPARSEABLE_IMAGE = 3;
*/
UNPARSEABLE_IMAGE(3),
/**
*
* Animated images are not allowed.
*
*
* ANIMATED_IMAGE_NOT_ALLOWED = 4;
*/
ANIMATED_IMAGE_NOT_ALLOWED(4),
/**
*
* The image or media bundle format is not allowed.
*
*
* FORMAT_NOT_ALLOWED = 5;
*/
FORMAT_NOT_ALLOWED(5),
/**
*
* Cannot reference URL external to the media bundle.
*
*
* EXTERNAL_URL_NOT_ALLOWED = 6;
*/
EXTERNAL_URL_NOT_ALLOWED(6),
/**
*
* HTML5 ad is trying to reference an asset not in .ZIP file.
*
*
* INVALID_URL_REFERENCE = 7;
*/
INVALID_URL_REFERENCE(7),
/**
*
* The media bundle contains no primary entry.
*
*
* MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8;
*/
MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY(8),
/**
*
* Animation has disallowed visual effects.
*
*
* ANIMATED_VISUAL_EFFECT = 9;
*/
ANIMATED_VISUAL_EFFECT(9),
/**
*
* Animation longer than the allowed 30 second limit.
*
*
* ANIMATION_TOO_LONG = 10;
*/
ANIMATION_TOO_LONG(10),
/**
*
* The aspect ratio of the image does not match the expected aspect ratios
* provided in the asset spec.
*
*
* ASPECT_RATIO_NOT_ALLOWED = 11;
*/
ASPECT_RATIO_NOT_ALLOWED(11),
/**
*
* Audio files are not allowed in bundle.
*
*
* AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 12;
*/
AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE(12),
/**
*
* CMYK jpegs are not supported.
*
*
* CMYK_JPEG_NOT_ALLOWED = 13;
*/
CMYK_JPEG_NOT_ALLOWED(13),
/**
*
* Flash movies are not allowed.
*
*
* FLASH_NOT_ALLOWED = 14;
*/
FLASH_NOT_ALLOWED(14),
/**
*
* The frame rate of the video is higher than the allowed 5fps.
*
*
* FRAME_RATE_TOO_HIGH = 15;
*/
FRAME_RATE_TOO_HIGH(15),
/**
*
* ZIP file from Google Web Designer is not published.
*
*
* GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 16;
*/
GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED(16),
/**
*
* Image constraints are violated, but more details (like
* DIMENSIONS_NOT_ALLOWED or ASPECT_RATIO_NOT_ALLOWED) can not be provided.
* This happens when asset spec contains more than one constraint and
* criteria of different constraints are violated.
*
*
* IMAGE_CONSTRAINTS_VIOLATED = 17;
*/
IMAGE_CONSTRAINTS_VIOLATED(17),
/**
*
* Media bundle data is unrecognizable.
*
*
* INVALID_MEDIA_BUNDLE = 18;
*/
INVALID_MEDIA_BUNDLE(18),
/**
*
* There was a problem with one or more of the media bundle entries.
*
*
* INVALID_MEDIA_BUNDLE_ENTRY = 19;
*/
INVALID_MEDIA_BUNDLE_ENTRY(19),
/**
*
* The asset has an invalid mime type.
*
*
* INVALID_MIME_TYPE = 20;
*/
INVALID_MIME_TYPE(20),
/**
*
* The media bundle contains an invalid asset path.
*
*
* INVALID_PATH = 21;
*/
INVALID_PATH(21),
/**
*
* Image has layout problem.
*
*
* LAYOUT_PROBLEM = 22;
*/
LAYOUT_PROBLEM(22),
/**
*
* An asset had a URL reference that is malformed per RFC 1738 convention.
*
*
* MALFORMED_URL = 23;
*/
MALFORMED_URL(23),
/**
*
* The uploaded media bundle format is not allowed.
*
*
* MEDIA_BUNDLE_NOT_ALLOWED = 24;
*/
MEDIA_BUNDLE_NOT_ALLOWED(24),
/**
*
* The media bundle is not compatible with the asset spec product type.
* (For example, Gmail, dynamic remarketing, etc.)
*
*
* MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE = 25;
*/
MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE(25),
/**
*
* A bundle being uploaded that is incompatible with multiple assets for
* different reasons.
*
*
* MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS = 26;
*/
MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS(26),
/**
*
* The media bundle contains too many files.
*
*
* TOO_MANY_FILES_IN_MEDIA_BUNDLE = 27;
*/
TOO_MANY_FILES_IN_MEDIA_BUNDLE(27),
/**
*
* Google Web Designer not created for "Google Ads" environment.
*
*
* UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 28;
*/
UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT(28),
/**
*
* Unsupported HTML5 feature in HTML5 asset.
*
*
* UNSUPPORTED_HTML5_FEATURE = 29;
*/
UNSUPPORTED_HTML5_FEATURE(29),
/**
*
* URL in HTML5 entry is not SSL compliant.
*
*
* URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 30;
*/
URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT(30),
/**
*
* Video file name is longer than the 50 allowed characters.
*
*
* VIDEO_FILE_NAME_TOO_LONG = 31;
*/
VIDEO_FILE_NAME_TOO_LONG(31),
/**
*
* Multiple videos with same name in a bundle.
*
*
* VIDEO_MULTIPLE_FILES_WITH_SAME_NAME = 32;
*/
VIDEO_MULTIPLE_FILES_WITH_SAME_NAME(32),
/**
*
* Videos are not allowed in media bundle.
*
*
* VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 33;
*/
VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE(33),
/**
*
* This type of media cannot be uploaded through the Google Ads API.
*
*
* CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API = 34;
*/
CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API(34),
/**
*
* The dimensions of the image are not allowed.
*
*
* DIMENSIONS_NOT_ALLOWED = 35;
*/
DIMENSIONS_NOT_ALLOWED(35),
UNRECOGNIZED(-1),
;
/**
*
* Enum unspecified.
*
*
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
*
* The received error code is not known in this version.
*
*
* UNKNOWN = 1;
*/
public static final int UNKNOWN_VALUE = 1;
/**
*
* The uploaded file is too big.
*
*
* FILE_TOO_BIG = 2;
*/
public static final int FILE_TOO_BIG_VALUE = 2;
/**
*
* Image data is unparseable.
*
*
* UNPARSEABLE_IMAGE = 3;
*/
public static final int UNPARSEABLE_IMAGE_VALUE = 3;
/**
*
* Animated images are not allowed.
*
*
* ANIMATED_IMAGE_NOT_ALLOWED = 4;
*/
public static final int ANIMATED_IMAGE_NOT_ALLOWED_VALUE = 4;
/**
*
* The image or media bundle format is not allowed.
*
*
* FORMAT_NOT_ALLOWED = 5;
*/
public static final int FORMAT_NOT_ALLOWED_VALUE = 5;
/**
*
* Cannot reference URL external to the media bundle.
*
*
* EXTERNAL_URL_NOT_ALLOWED = 6;
*/
public static final int EXTERNAL_URL_NOT_ALLOWED_VALUE = 6;
/**
*
* HTML5 ad is trying to reference an asset not in .ZIP file.
*
*
* INVALID_URL_REFERENCE = 7;
*/
public static final int INVALID_URL_REFERENCE_VALUE = 7;
/**
*
* The media bundle contains no primary entry.
*
*
* MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8;
*/
public static final int MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY_VALUE = 8;
/**
*
* Animation has disallowed visual effects.
*
*
* ANIMATED_VISUAL_EFFECT = 9;
*/
public static final int ANIMATED_VISUAL_EFFECT_VALUE = 9;
/**
*
* Animation longer than the allowed 30 second limit.
*
*
* ANIMATION_TOO_LONG = 10;
*/
public static final int ANIMATION_TOO_LONG_VALUE = 10;
/**
*
* The aspect ratio of the image does not match the expected aspect ratios
* provided in the asset spec.
*
*
* ASPECT_RATIO_NOT_ALLOWED = 11;
*/
public static final int ASPECT_RATIO_NOT_ALLOWED_VALUE = 11;
/**
*
* Audio files are not allowed in bundle.
*
*
* AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 12;
*/
public static final int AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE_VALUE = 12;
/**
*
* CMYK jpegs are not supported.
*
*
* CMYK_JPEG_NOT_ALLOWED = 13;
*/
public static final int CMYK_JPEG_NOT_ALLOWED_VALUE = 13;
/**
*
* Flash movies are not allowed.
*
*
* FLASH_NOT_ALLOWED = 14;
*/
public static final int FLASH_NOT_ALLOWED_VALUE = 14;
/**
*
* The frame rate of the video is higher than the allowed 5fps.
*
*
* FRAME_RATE_TOO_HIGH = 15;
*/
public static final int FRAME_RATE_TOO_HIGH_VALUE = 15;
/**
*
* ZIP file from Google Web Designer is not published.
*
*
* GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 16;
*/
public static final int GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED_VALUE = 16;
/**
*
* Image constraints are violated, but more details (like
* DIMENSIONS_NOT_ALLOWED or ASPECT_RATIO_NOT_ALLOWED) can not be provided.
* This happens when asset spec contains more than one constraint and
* criteria of different constraints are violated.
*
*
* IMAGE_CONSTRAINTS_VIOLATED = 17;
*/
public static final int IMAGE_CONSTRAINTS_VIOLATED_VALUE = 17;
/**
*
* Media bundle data is unrecognizable.
*
*
* INVALID_MEDIA_BUNDLE = 18;
*/
public static final int INVALID_MEDIA_BUNDLE_VALUE = 18;
/**
*
* There was a problem with one or more of the media bundle entries.
*
*
* INVALID_MEDIA_BUNDLE_ENTRY = 19;
*/
public static final int INVALID_MEDIA_BUNDLE_ENTRY_VALUE = 19;
/**
*
* The asset has an invalid mime type.
*
*
* INVALID_MIME_TYPE = 20;
*/
public static final int INVALID_MIME_TYPE_VALUE = 20;
/**
*
* The media bundle contains an invalid asset path.
*
*
* INVALID_PATH = 21;
*/
public static final int INVALID_PATH_VALUE = 21;
/**
*
* Image has layout problem.
*
*
* LAYOUT_PROBLEM = 22;
*/
public static final int LAYOUT_PROBLEM_VALUE = 22;
/**
*
* An asset had a URL reference that is malformed per RFC 1738 convention.
*
*
* MALFORMED_URL = 23;
*/
public static final int MALFORMED_URL_VALUE = 23;
/**
*
* The uploaded media bundle format is not allowed.
*
*
* MEDIA_BUNDLE_NOT_ALLOWED = 24;
*/
public static final int MEDIA_BUNDLE_NOT_ALLOWED_VALUE = 24;
/**
*
* The media bundle is not compatible with the asset spec product type.
* (For example, Gmail, dynamic remarketing, etc.)
*
*
* MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE = 25;
*/
public static final int MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE_VALUE = 25;
/**
*
* A bundle being uploaded that is incompatible with multiple assets for
* different reasons.
*
*
* MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS = 26;
*/
public static final int MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS_VALUE = 26;
/**
*
* The media bundle contains too many files.
*
*
* TOO_MANY_FILES_IN_MEDIA_BUNDLE = 27;
*/
public static final int TOO_MANY_FILES_IN_MEDIA_BUNDLE_VALUE = 27;
/**
*
* Google Web Designer not created for "Google Ads" environment.
*
*
* UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 28;
*/
public static final int UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT_VALUE = 28;
/**
*
* Unsupported HTML5 feature in HTML5 asset.
*
*
* UNSUPPORTED_HTML5_FEATURE = 29;
*/
public static final int UNSUPPORTED_HTML5_FEATURE_VALUE = 29;
/**
*
* URL in HTML5 entry is not SSL compliant.
*
*
* URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 30;
*/
public static final int URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT_VALUE = 30;
/**
*
* Video file name is longer than the 50 allowed characters.
*
*
* VIDEO_FILE_NAME_TOO_LONG = 31;
*/
public static final int VIDEO_FILE_NAME_TOO_LONG_VALUE = 31;
/**
*
* Multiple videos with same name in a bundle.
*
*
* VIDEO_MULTIPLE_FILES_WITH_SAME_NAME = 32;
*/
public static final int VIDEO_MULTIPLE_FILES_WITH_SAME_NAME_VALUE = 32;
/**
*
* Videos are not allowed in media bundle.
*
*
* VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 33;
*/
public static final int VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE_VALUE = 33;
/**
*
* This type of media cannot be uploaded through the Google Ads API.
*
*
* CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API = 34;
*/
public static final int CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API_VALUE = 34;
/**
*
* The dimensions of the image are not allowed.
*
*
* DIMENSIONS_NOT_ALLOWED = 35;
*/
public static final int DIMENSIONS_NOT_ALLOWED_VALUE = 35;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MediaUploadError valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static MediaUploadError forNumber(int value) {
switch (value) {
case 0: return UNSPECIFIED;
case 1: return UNKNOWN;
case 2: return FILE_TOO_BIG;
case 3: return UNPARSEABLE_IMAGE;
case 4: return ANIMATED_IMAGE_NOT_ALLOWED;
case 5: return FORMAT_NOT_ALLOWED;
case 6: return EXTERNAL_URL_NOT_ALLOWED;
case 7: return INVALID_URL_REFERENCE;
case 8: return MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY;
case 9: return ANIMATED_VISUAL_EFFECT;
case 10: return ANIMATION_TOO_LONG;
case 11: return ASPECT_RATIO_NOT_ALLOWED;
case 12: return AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE;
case 13: return CMYK_JPEG_NOT_ALLOWED;
case 14: return FLASH_NOT_ALLOWED;
case 15: return FRAME_RATE_TOO_HIGH;
case 16: return GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED;
case 17: return IMAGE_CONSTRAINTS_VIOLATED;
case 18: return INVALID_MEDIA_BUNDLE;
case 19: return INVALID_MEDIA_BUNDLE_ENTRY;
case 20: return INVALID_MIME_TYPE;
case 21: return INVALID_PATH;
case 22: return LAYOUT_PROBLEM;
case 23: return MALFORMED_URL;
case 24: return MEDIA_BUNDLE_NOT_ALLOWED;
case 25: return MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE;
case 26: return MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS;
case 27: return TOO_MANY_FILES_IN_MEDIA_BUNDLE;
case 28: return UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT;
case 29: return UNSUPPORTED_HTML5_FEATURE;
case 30: return URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT;
case 31: return VIDEO_FILE_NAME_TOO_LONG;
case 32: return VIDEO_MULTIPLE_FILES_WITH_SAME_NAME;
case 33: return VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE;
case 34: return CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API;
case 35: return DIMENSIONS_NOT_ALLOWED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MediaUploadError> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MediaUploadError findValueByNumber(int number) {
return MediaUploadError.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.getDescriptor().getEnumTypes().get(0);
}
private static final MediaUploadError[] VALUES = values();
public static MediaUploadError valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private MediaUploadError(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.ads.googleads.v17.errors.MediaUploadErrorEnum.MediaUploadError)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.errors.MediaUploadErrorEnum)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.errors.MediaUploadErrorEnum other = (com.google.ads.googleads.v17.errors.MediaUploadErrorEnum) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.errors.MediaUploadErrorEnum prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Container for enum describing possible media uploading errors.
*
*
* Protobuf type {@code google.ads.googleads.v17.errors.MediaUploadErrorEnum}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.errors.MediaUploadErrorEnum)
com.google.ads.googleads.v17.errors.MediaUploadErrorEnumOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorProto.internal_static_google_ads_googleads_v17_errors_MediaUploadErrorEnum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorProto.internal_static_google_ads_googleads_v17_errors_MediaUploadErrorEnum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.class, com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.Builder.class);
}
// Construct using com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorProto.internal_static_google_ads_googleads_v17_errors_MediaUploadErrorEnum_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.MediaUploadErrorEnum getDefaultInstanceForType() {
return com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.MediaUploadErrorEnum build() {
com.google.ads.googleads.v17.errors.MediaUploadErrorEnum result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.MediaUploadErrorEnum buildPartial() {
com.google.ads.googleads.v17.errors.MediaUploadErrorEnum result = new com.google.ads.googleads.v17.errors.MediaUploadErrorEnum(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.errors.MediaUploadErrorEnum) {
return mergeFrom((com.google.ads.googleads.v17.errors.MediaUploadErrorEnum)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.errors.MediaUploadErrorEnum other) {
if (other == com.google.ads.googleads.v17.errors.MediaUploadErrorEnum.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.errors.MediaUploadErrorEnum)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.errors.MediaUploadErrorEnum)
private static final com.google.ads.googleads.v17.errors.MediaUploadErrorEnum DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.errors.MediaUploadErrorEnum();
}
public static com.google.ads.googleads.v17.errors.MediaUploadErrorEnum getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MediaUploadErrorEnum parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.errors.MediaUploadErrorEnum getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy