Enum 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 enum google.ads.googleads.v10.errors.RequestErrorEnum.RequestError
    • Enum Constant Detail

      • 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;
      • OPERATION_REQUIRED

        public static final RequestErrorEnum.RequestError OPERATION_REQUIRED
         Mutate operation should have either create, update, or remove specified.
         
        OPERATION_REQUIRED = 5;
      • 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;
      • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        java.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.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        java.lang.NullPointerException - if the argument is null