Enum Class MutateErrorEnum.MutateError
java.lang.Object
java.lang.Enum<MutateErrorEnum.MutateError>
com.google.ads.googleads.v18.errors.MutateErrorEnum.MutateError
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<MutateErrorEnum.MutateError>,Constable
- Enclosing class:
- MutateErrorEnum
public static enum MutateErrorEnum.MutateError
extends Enum<MutateErrorEnum.MutateError>
implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible mutate errors.Protobuf enum
google.ads.googleads.v18.errors.MutateErrorEnum.MutateError-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCannot mutate the same resource twice in one request.The field's contents don't match another field that represents the same data.Mutates are not allowed for the requested resource.This operation cannot be used with "partial_failure".The resource being created already exists.This resource cannot be used with "validate_only".Requested resource was not found.The resource isn't in Google Ads.Attempt to write to read-only fields.The received error code is not known in this version.Enum unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCannot mutate the same resource twice in one request.static final intThe field's contents don't match another field that represents the same data.static final intMutates are not allowed for the requested resource.static final intThis operation cannot be used with "partial_failure".static final intThe resource being created already exists.static final intThis resource cannot be used with "validate_only".static final intRequested resource was not found.static final intThe resource isn't in Google Ads.static final intAttempt to write to read-only fields.static final intThe received error code is not known in this version.static final intEnum unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic MutateErrorEnum.MutateErrorforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MutateErrorEnum.MutateError>static MutateErrorEnum.MutateErrorvalueOf(int value) Deprecated.static MutateErrorEnum.MutateErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static MutateErrorEnum.MutateErrorReturns the enum constant of this class with the specified name.static MutateErrorEnum.MutateError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0; -
UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1; -
RESOURCE_NOT_FOUND
Requested resource was not found.
RESOURCE_NOT_FOUND = 3; -
ID_EXISTS_IN_MULTIPLE_MUTATES
Cannot mutate the same resource twice in one request.
ID_EXISTS_IN_MULTIPLE_MUTATES = 7; -
INCONSISTENT_FIELD_VALUES
The field's contents don't match another field that represents the same data.
INCONSISTENT_FIELD_VALUES = 8; -
MUTATE_NOT_ALLOWED
Mutates are not allowed for the requested resource.
MUTATE_NOT_ALLOWED = 9; -
RESOURCE_NOT_IN_GOOGLE_ADS
The resource isn't in Google Ads. It belongs to another ads system.
RESOURCE_NOT_IN_GOOGLE_ADS = 10; -
RESOURCE_ALREADY_EXISTS
The resource being created already exists.
RESOURCE_ALREADY_EXISTS = 11; -
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY
This resource cannot be used with "validate_only".
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12; -
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE
This operation cannot be used with "partial_failure".
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE = 16; -
RESOURCE_READ_ONLY
Attempt to write to read-only fields.
RESOURCE_READ_ONLY = 13; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEEnum unspecified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe received error code is not known in this version.
UNKNOWN = 1;- See Also:
-
RESOURCE_NOT_FOUND_VALUE
public static final int RESOURCE_NOT_FOUND_VALUERequested resource was not found.
RESOURCE_NOT_FOUND = 3;- See Also:
-
ID_EXISTS_IN_MULTIPLE_MUTATES_VALUE
public static final int ID_EXISTS_IN_MULTIPLE_MUTATES_VALUECannot mutate the same resource twice in one request.
ID_EXISTS_IN_MULTIPLE_MUTATES = 7;- See Also:
-
INCONSISTENT_FIELD_VALUES_VALUE
public static final int INCONSISTENT_FIELD_VALUES_VALUEThe field's contents don't match another field that represents the same data.
INCONSISTENT_FIELD_VALUES = 8;- See Also:
-
MUTATE_NOT_ALLOWED_VALUE
public static final int MUTATE_NOT_ALLOWED_VALUEMutates are not allowed for the requested resource.
MUTATE_NOT_ALLOWED = 9;- See Also:
-
RESOURCE_NOT_IN_GOOGLE_ADS_VALUE
public static final int RESOURCE_NOT_IN_GOOGLE_ADS_VALUEThe resource isn't in Google Ads. It belongs to another ads system.
RESOURCE_NOT_IN_GOOGLE_ADS = 10;- See Also:
-
RESOURCE_ALREADY_EXISTS_VALUE
public static final int RESOURCE_ALREADY_EXISTS_VALUEThe resource being created already exists.
RESOURCE_ALREADY_EXISTS = 11;- See Also:
-
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY_VALUE
public static final int RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY_VALUEThis resource cannot be used with "validate_only".
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12;- See Also:
-
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE_VALUE
public static final int OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE_VALUEThis operation cannot be used with "partial_failure".
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE = 16;- See Also:
-
RESOURCE_READ_ONLY_VALUE
public static final int RESOURCE_READ_ONLY_VALUEAttempt to write to read-only fields.
RESOURCE_READ_ONLY = 13;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<MutateErrorEnum.MutateError> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static MutateErrorEnum.MutateError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-