Enum MutateErrorEnum.MutateError
- java.lang.Object
-
- java.lang.Enum<MutateErrorEnum.MutateError>
-
- com.google.ads.googleads.v10.errors.MutateErrorEnum.MutateError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<MutateErrorEnum.MutateError>
- Enclosing class:
- MutateErrorEnum
public static enum MutateErrorEnum.MutateError extends java.lang.Enum<MutateErrorEnum.MutateError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible mutate errors.
Protobuf enumgoogle.ads.googleads.v10.errors.MutateErrorEnum.MutateError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ID_EXISTS_IN_MULTIPLE_MUTATESCannot mutate the same resource twice in one request.INCONSISTENT_FIELD_VALUESThe field's contents don't match another field that represents the same data.MUTATE_NOT_ALLOWEDMutates are not allowed for the requested resource.OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILUREThis operation cannot be used with "partial_failure".RESOURCE_ALREADY_EXISTSThe resource being created already exists.RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLYThis resource cannot be used with "validate_only".RESOURCE_NOT_FOUNDRequested resource was not found.RESOURCE_NOT_IN_GOOGLE_ADSThe resource isn't in Google Ads.RESOURCE_READ_ONLYAttempt to write to read-only fields.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intID_EXISTS_IN_MULTIPLE_MUTATES_VALUECannot mutate the same resource twice in one request.static intINCONSISTENT_FIELD_VALUES_VALUEThe field's contents don't match another field that represents the same data.static intMUTATE_NOT_ALLOWED_VALUEMutates are not allowed for the requested resource.static intOPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE_VALUEThis operation cannot be used with "partial_failure".static intRESOURCE_ALREADY_EXISTS_VALUEThe resource being created already exists.static intRESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY_VALUEThis resource cannot be used with "validate_only".static intRESOURCE_NOT_FOUND_VALUERequested resource was not found.static intRESOURCE_NOT_IN_GOOGLE_ADS_VALUEThe resource isn't in Google Ads.static intRESOURCE_READ_ONLY_VALUEAttempt to write to read-only fields.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MutateErrorEnum.MutateErrorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<MutateErrorEnum.MutateError>internalGetValueMap()static MutateErrorEnum.MutateErrorvalueOf(int value)Deprecated.static MutateErrorEnum.MutateErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MutateErrorEnum.MutateErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MutateErrorEnum.MutateError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final MutateErrorEnum.MutateError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final MutateErrorEnum.MutateError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
RESOURCE_NOT_FOUND
public static final MutateErrorEnum.MutateError RESOURCE_NOT_FOUND
Requested resource was not found.
RESOURCE_NOT_FOUND = 3;
-
ID_EXISTS_IN_MULTIPLE_MUTATES
public static final MutateErrorEnum.MutateError ID_EXISTS_IN_MULTIPLE_MUTATES
Cannot mutate the same resource twice in one request.
ID_EXISTS_IN_MULTIPLE_MUTATES = 7;
-
INCONSISTENT_FIELD_VALUES
public static final MutateErrorEnum.MutateError INCONSISTENT_FIELD_VALUES
The field's contents don't match another field that represents the same data.
INCONSISTENT_FIELD_VALUES = 8;
-
MUTATE_NOT_ALLOWED
public static final MutateErrorEnum.MutateError MUTATE_NOT_ALLOWED
Mutates are not allowed for the requested resource.
MUTATE_NOT_ALLOWED = 9;
-
RESOURCE_NOT_IN_GOOGLE_ADS
public static final MutateErrorEnum.MutateError 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
public static final MutateErrorEnum.MutateError RESOURCE_ALREADY_EXISTS
The resource being created already exists.
RESOURCE_ALREADY_EXISTS = 11;
-
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY
public static final MutateErrorEnum.MutateError 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
public static final MutateErrorEnum.MutateError OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE
This operation cannot be used with "partial_failure".
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE = 16;
-
RESOURCE_READ_ONLY
public static final MutateErrorEnum.MutateError RESOURCE_READ_ONLY
Attempt to write to read-only fields.
RESOURCE_READ_ONLY = 13;
-
UNRECOGNIZED
public static final MutateErrorEnum.MutateError UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Enum unspecified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The received error code is not known in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
RESOURCE_NOT_FOUND_VALUE
public static final int RESOURCE_NOT_FOUND_VALUE
Requested resource was not found.
RESOURCE_NOT_FOUND = 3;- See Also:
- Constant Field Values
-
ID_EXISTS_IN_MULTIPLE_MUTATES_VALUE
public static final int ID_EXISTS_IN_MULTIPLE_MUTATES_VALUE
Cannot mutate the same resource twice in one request.
ID_EXISTS_IN_MULTIPLE_MUTATES = 7;- See Also:
- Constant Field Values
-
INCONSISTENT_FIELD_VALUES_VALUE
public static final int INCONSISTENT_FIELD_VALUES_VALUE
The field's contents don't match another field that represents the same data.
INCONSISTENT_FIELD_VALUES = 8;- See Also:
- Constant Field Values
-
MUTATE_NOT_ALLOWED_VALUE
public static final int MUTATE_NOT_ALLOWED_VALUE
Mutates are not allowed for the requested resource.
MUTATE_NOT_ALLOWED = 9;- See Also:
- Constant Field Values
-
RESOURCE_NOT_IN_GOOGLE_ADS_VALUE
public static final int RESOURCE_NOT_IN_GOOGLE_ADS_VALUE
The resource isn't in Google Ads. It belongs to another ads system.
RESOURCE_NOT_IN_GOOGLE_ADS = 10;- See Also:
- Constant Field Values
-
RESOURCE_ALREADY_EXISTS_VALUE
public static final int RESOURCE_ALREADY_EXISTS_VALUE
The resource being created already exists.
RESOURCE_ALREADY_EXISTS = 11;- See Also:
- Constant Field Values
-
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY_VALUE
public static final int RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY_VALUE
This resource cannot be used with "validate_only".
RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12;- See Also:
- Constant Field Values
-
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE_VALUE
public static final int OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE_VALUE
This operation cannot be used with "partial_failure".
OPERATION_DOES_NOT_SUPPORT_PARTIAL_FAILURE = 16;- See Also:
- Constant Field Values
-
RESOURCE_READ_ONLY_VALUE
public static final int RESOURCE_READ_ONLY_VALUE
Attempt to write to read-only fields.
RESOURCE_READ_ONLY = 13;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MutateErrorEnum.MutateError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MutateErrorEnum.MutateError c : MutateErrorEnum.MutateError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MutateErrorEnum.MutateError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static MutateErrorEnum.MutateError valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static MutateErrorEnum.MutateError forNumber(int value)
- 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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-