Enum RequestErrorEnum.RequestError
- java.lang.Object
-
- java.lang.Enum<RequestErrorEnum.RequestError>
-
- com.google.ads.googleads.v10.errors.RequestErrorEnum.RequestError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<RequestErrorEnum.RequestError>
- Enclosing class:
- RequestErrorEnum
public static enum RequestErrorEnum.RequestError extends java.lang.Enum<RequestErrorEnum.RequestError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible request errors.
Protobuf enumgoogle.ads.googleads.v10.errors.RequestErrorEnum.RequestError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_RESOURCE_IDResource name provided is malformed.CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNTRequest cannot be executed by a manager account.CANNOT_MODIFY_FOREIGN_FIELDMutate request was attempting to modify a readonly field.CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICSreturn_summary_row cannot be enabled if request did not select any metrics field.CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTSreturn_summary_row should not be enabled for validate only requests.DEVELOPER_TOKEN_PARAMETER_MISSINGThe developer-token parameter is required for all requests.EXPIRED_PAGE_TOKENNext page token specified in user request has expired.IMMUTABLE_FIELDThe field cannot be modified because it's immutable.INCONSISTENT_RETURN_SUMMARY_ROW_VALUEreturn_summary_row parameter value should be the same between requests with page_token field set and their original request.INVALID_CUSTOMER_IDCustomer ID is invalid.INVALID_ENUM_VALUEEnum value is not permitted.INVALID_PAGE_SIZEPage size specified in user request is invalid.INVALID_PAGE_TOKENNext page token specified in user request is invalid.LOGIN_CUSTOMER_ID_PARAMETER_MISSINGThe login-customer-id parameter is required for this request.OPERATION_REQUIREDMutate operation should have either create, update, or remove specified.REQUIRED_FIELD_MISSINGRequired field is missing.RESOURCE_NAME_MALFORMEDResource name provided is malformed.RESOURCE_NAME_MISSINGResource name is required for this request.RESOURCE_NOT_FOUNDRequested resource not found.RPC_DEADLINE_TOO_SHORTDeadline specified by the client was too short.TOO_MANY_MUTATE_OPERATIONSReceived too many entries in request.TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTEDThe total results count cannot be returned if it was not requested in the original request.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKENpage_token is set in the validate only request
-
Field Summary
Fields Modifier and Type Field Description static intBAD_RESOURCE_ID_VALUEResource name provided is malformed.static intCANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT_VALUERequest cannot be executed by a manager account.static intCANNOT_MODIFY_FOREIGN_FIELD_VALUEMutate request was attempting to modify a readonly field.static intCANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS_VALUEreturn_summary_row cannot be enabled if request did not select any metrics field.static intCANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS_VALUEreturn_summary_row should not be enabled for validate only requests.static intDEVELOPER_TOKEN_PARAMETER_MISSING_VALUEThe developer-token parameter is required for all requests.static intEXPIRED_PAGE_TOKEN_VALUENext page token specified in user request has expired.static intIMMUTABLE_FIELD_VALUEThe field cannot be modified because it's immutable.static intINCONSISTENT_RETURN_SUMMARY_ROW_VALUE_VALUEreturn_summary_row parameter value should be the same between requests with page_token field set and their original request.static intINVALID_CUSTOMER_ID_VALUECustomer ID is invalid.static intINVALID_ENUM_VALUE_VALUEEnum value is not permitted.static intINVALID_PAGE_SIZE_VALUEPage size specified in user request is invalid.static intINVALID_PAGE_TOKEN_VALUENext page token specified in user request is invalid.static intLOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUEThe login-customer-id parameter is required for this request.static intOPERATION_REQUIRED_VALUEMutate operation should have either create, update, or remove specified.static intREQUIRED_FIELD_MISSING_VALUERequired field is missing.static intRESOURCE_NAME_MALFORMED_VALUEResource name provided is malformed.static intRESOURCE_NAME_MISSING_VALUEResource name is required for this request.static intRESOURCE_NOT_FOUND_VALUERequested resource not found.static intRPC_DEADLINE_TOO_SHORT_VALUEDeadline specified by the client was too short.static intTOO_MANY_MUTATE_OPERATIONS_VALUEReceived too many entries in request.static intTOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED_VALUEThe total results count cannot be returned if it was not requested in the original request.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.static intVALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUEpage_token is set in the validate only request
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RequestErrorEnum.RequestErrorforNumber(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<RequestErrorEnum.RequestError>internalGetValueMap()static RequestErrorEnum.RequestErrorvalueOf(int value)Deprecated.static RequestErrorEnum.RequestErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static RequestErrorEnum.RequestErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RequestErrorEnum.RequestError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final RequestErrorEnum.RequestError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final RequestErrorEnum.RequestError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
RESOURCE_NAME_MISSING
public static final RequestErrorEnum.RequestError RESOURCE_NAME_MISSING
Resource name is required for this request.
RESOURCE_NAME_MISSING = 3;
-
RESOURCE_NAME_MALFORMED
public static final RequestErrorEnum.RequestError RESOURCE_NAME_MALFORMED
Resource name provided is malformed.
RESOURCE_NAME_MALFORMED = 4;
-
BAD_RESOURCE_ID
public static final RequestErrorEnum.RequestError BAD_RESOURCE_ID
Resource name provided is malformed.
BAD_RESOURCE_ID = 17;
-
INVALID_CUSTOMER_ID
public static final RequestErrorEnum.RequestError INVALID_CUSTOMER_ID
Customer ID is invalid.
INVALID_CUSTOMER_ID = 16;
-
OPERATION_REQUIRED
public static final RequestErrorEnum.RequestError OPERATION_REQUIRED
Mutate operation should have either create, update, or remove specified.
OPERATION_REQUIRED = 5;
-
RESOURCE_NOT_FOUND
public static final RequestErrorEnum.RequestError RESOURCE_NOT_FOUND
Requested resource not found.
RESOURCE_NOT_FOUND = 6;
-
INVALID_PAGE_TOKEN
public static final RequestErrorEnum.RequestError INVALID_PAGE_TOKEN
Next page token specified in user request is invalid.
INVALID_PAGE_TOKEN = 7;
-
EXPIRED_PAGE_TOKEN
public static final RequestErrorEnum.RequestError EXPIRED_PAGE_TOKEN
Next page token specified in user request has expired.
EXPIRED_PAGE_TOKEN = 8;
-
INVALID_PAGE_SIZE
public static final RequestErrorEnum.RequestError INVALID_PAGE_SIZE
Page size specified in user request is invalid.
INVALID_PAGE_SIZE = 22;
-
REQUIRED_FIELD_MISSING
public static final RequestErrorEnum.RequestError REQUIRED_FIELD_MISSING
Required field is missing.
REQUIRED_FIELD_MISSING = 9;
-
IMMUTABLE_FIELD
public static final RequestErrorEnum.RequestError IMMUTABLE_FIELD
The field cannot be modified because it's immutable. It's also possible that the field can be modified using 'create' operation but not 'update'.
IMMUTABLE_FIELD = 11;
-
TOO_MANY_MUTATE_OPERATIONS
public static final RequestErrorEnum.RequestError TOO_MANY_MUTATE_OPERATIONS
Received too many entries in request.
TOO_MANY_MUTATE_OPERATIONS = 13;
-
CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT
public static final RequestErrorEnum.RequestError CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT
Request cannot be executed by a manager account.
CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
-
CANNOT_MODIFY_FOREIGN_FIELD
public static final RequestErrorEnum.RequestError CANNOT_MODIFY_FOREIGN_FIELD
Mutate request was attempting to modify a readonly field. For instance, Budget fields can be requested for Ad Group, but are read-only for adGroups:mutate.
CANNOT_MODIFY_FOREIGN_FIELD = 15;
-
INVALID_ENUM_VALUE
public static final RequestErrorEnum.RequestError INVALID_ENUM_VALUE
Enum value is not permitted.
INVALID_ENUM_VALUE = 18;
-
DEVELOPER_TOKEN_PARAMETER_MISSING
public static final RequestErrorEnum.RequestError DEVELOPER_TOKEN_PARAMETER_MISSING
The developer-token parameter is required for all requests.
DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
-
LOGIN_CUSTOMER_ID_PARAMETER_MISSING
public static final RequestErrorEnum.RequestError LOGIN_CUSTOMER_ID_PARAMETER_MISSING
The login-customer-id parameter is required for this request.
LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
-
VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN
public static final RequestErrorEnum.RequestError VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN
page_token is set in the validate only request
VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
-
CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS
public static final RequestErrorEnum.RequestError CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS
return_summary_row cannot be enabled if request did not select any metrics field.
CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;
-
CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS
public static final RequestErrorEnum.RequestError CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS
return_summary_row should not be enabled for validate only requests.
CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;
-
INCONSISTENT_RETURN_SUMMARY_ROW_VALUE
public static final RequestErrorEnum.RequestError INCONSISTENT_RETURN_SUMMARY_ROW_VALUE
return_summary_row parameter value should be the same between requests with page_token field set and their original request.
INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;
-
TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED
public static final RequestErrorEnum.RequestError TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED
The total results count cannot be returned if it was not requested in the original request.
TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;
-
RPC_DEADLINE_TOO_SHORT
public static final RequestErrorEnum.RequestError RPC_DEADLINE_TOO_SHORT
Deadline specified by the client was too short.
RPC_DEADLINE_TOO_SHORT = 33;
-
UNRECOGNIZED
public static final RequestErrorEnum.RequestError 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_NAME_MISSING_VALUE
public static final int RESOURCE_NAME_MISSING_VALUE
Resource name is required for this request.
RESOURCE_NAME_MISSING = 3;- See Also:
- Constant Field Values
-
RESOURCE_NAME_MALFORMED_VALUE
public static final int RESOURCE_NAME_MALFORMED_VALUE
Resource name provided is malformed.
RESOURCE_NAME_MALFORMED = 4;- See Also:
- Constant Field Values
-
BAD_RESOURCE_ID_VALUE
public static final int BAD_RESOURCE_ID_VALUE
Resource name provided is malformed.
BAD_RESOURCE_ID = 17;- See Also:
- Constant Field Values
-
INVALID_CUSTOMER_ID_VALUE
public static final int INVALID_CUSTOMER_ID_VALUE
Customer ID is invalid.
INVALID_CUSTOMER_ID = 16;- See Also:
- Constant Field Values
-
OPERATION_REQUIRED_VALUE
public static final int OPERATION_REQUIRED_VALUE
Mutate operation should have either create, update, or remove specified.
OPERATION_REQUIRED = 5;- See Also:
- Constant Field Values
-
RESOURCE_NOT_FOUND_VALUE
public static final int RESOURCE_NOT_FOUND_VALUE
Requested resource not found.
RESOURCE_NOT_FOUND = 6;- See Also:
- Constant Field Values
-
INVALID_PAGE_TOKEN_VALUE
public static final int INVALID_PAGE_TOKEN_VALUE
Next page token specified in user request is invalid.
INVALID_PAGE_TOKEN = 7;- See Also:
- Constant Field Values
-
EXPIRED_PAGE_TOKEN_VALUE
public static final int EXPIRED_PAGE_TOKEN_VALUE
Next page token specified in user request has expired.
EXPIRED_PAGE_TOKEN = 8;- See Also:
- Constant Field Values
-
INVALID_PAGE_SIZE_VALUE
public static final int INVALID_PAGE_SIZE_VALUE
Page size specified in user request is invalid.
INVALID_PAGE_SIZE = 22;- See Also:
- Constant Field Values
-
REQUIRED_FIELD_MISSING_VALUE
public static final int REQUIRED_FIELD_MISSING_VALUE
Required field is missing.
REQUIRED_FIELD_MISSING = 9;- See Also:
- Constant Field Values
-
IMMUTABLE_FIELD_VALUE
public static final int IMMUTABLE_FIELD_VALUE
The field cannot be modified because it's immutable. It's also possible that the field can be modified using 'create' operation but not 'update'.
IMMUTABLE_FIELD = 11;- See Also:
- Constant Field Values
-
TOO_MANY_MUTATE_OPERATIONS_VALUE
public static final int TOO_MANY_MUTATE_OPERATIONS_VALUE
Received too many entries in request.
TOO_MANY_MUTATE_OPERATIONS = 13;- See Also:
- Constant Field Values
-
CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT_VALUE
public static final int CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT_VALUE
Request cannot be executed by a manager account.
CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;- See Also:
- Constant Field Values
-
CANNOT_MODIFY_FOREIGN_FIELD_VALUE
public static final int CANNOT_MODIFY_FOREIGN_FIELD_VALUE
Mutate request was attempting to modify a readonly field. For instance, Budget fields can be requested for Ad Group, but are read-only for adGroups:mutate.
CANNOT_MODIFY_FOREIGN_FIELD = 15;- See Also:
- Constant Field Values
-
INVALID_ENUM_VALUE_VALUE
public static final int INVALID_ENUM_VALUE_VALUE
Enum value is not permitted.
INVALID_ENUM_VALUE = 18;- See Also:
- Constant Field Values
-
DEVELOPER_TOKEN_PARAMETER_MISSING_VALUE
public static final int DEVELOPER_TOKEN_PARAMETER_MISSING_VALUE
The developer-token parameter is required for all requests.
DEVELOPER_TOKEN_PARAMETER_MISSING = 19;- See Also:
- Constant Field Values
-
LOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUE
public static final int LOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUE
The login-customer-id parameter is required for this request.
LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;- See Also:
- Constant Field Values
-
VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUE
public static final int VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUE
page_token is set in the validate only request
VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;- See Also:
- Constant Field Values
-
CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS_VALUE
public static final int CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS_VALUE
return_summary_row cannot be enabled if request did not select any metrics field.
CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;- See Also:
- Constant Field Values
-
CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS_VALUE
public static final int CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS_VALUE
return_summary_row should not be enabled for validate only requests.
CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;- See Also:
- Constant Field Values
-
INCONSISTENT_RETURN_SUMMARY_ROW_VALUE_VALUE
public static final int INCONSISTENT_RETURN_SUMMARY_ROW_VALUE_VALUE
return_summary_row parameter value should be the same between requests with page_token field set and their original request.
INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;- See Also:
- Constant Field Values
-
TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED_VALUE
public static final int TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED_VALUE
The total results count cannot be returned if it was not requested in the original request.
TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;- See Also:
- Constant Field Values
-
RPC_DEADLINE_TOO_SHORT_VALUE
public static final int RPC_DEADLINE_TOO_SHORT_VALUE
Deadline specified by the client was too short.
RPC_DEADLINE_TOO_SHORT = 33;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RequestErrorEnum.RequestError[] 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 (RequestErrorEnum.RequestError c : RequestErrorEnum.RequestError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestErrorEnum.RequestError 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 RequestErrorEnum.RequestError 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 RequestErrorEnum.RequestError 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<RequestErrorEnum.RequestError> 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 RequestErrorEnum.RequestError 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
-
-