Enum google_api_proto::google::ads::googleads::v15::errors::request_error_enum::RequestError
source · #[repr(i32)]pub enum RequestError {
Show 27 variants
Unspecified = 0,
Unknown = 1,
ResourceNameMissing = 3,
ResourceNameMalformed = 4,
BadResourceId = 17,
InvalidCustomerId = 16,
OperationRequired = 5,
ResourceNotFound = 6,
InvalidPageToken = 7,
ExpiredPageToken = 8,
InvalidPageSize = 22,
RequiredFieldMissing = 9,
ImmutableField = 11,
TooManyMutateOperations = 13,
CannotBeExecutedByManagerAccount = 14,
CannotModifyForeignField = 15,
InvalidEnumValue = 18,
DeveloperTokenParameterMissing = 19,
LoginCustomerIdParameterMissing = 20,
ValidateOnlyRequestHasPageToken = 21,
CannotReturnSummaryRowForRequestWithoutMetrics = 29,
CannotReturnSummaryRowForValidateOnlyRequests = 30,
InconsistentReturnSummaryRowValue = 31,
TotalResultsCountNotOriginallyRequested = 32,
RpcDeadlineTooShort = 33,
UnsupportedVersion = 38,
CloudProjectNotFound = 39,
}
Expand description
Enum describing possible request errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
ResourceNameMissing = 3
Resource name is required for this request.
ResourceNameMalformed = 4
Resource name provided is malformed.
BadResourceId = 17
Resource name provided is malformed.
InvalidCustomerId = 16
Customer ID is invalid.
OperationRequired = 5
Mutate operation should have either create, update, or remove specified.
ResourceNotFound = 6
Requested resource not found.
InvalidPageToken = 7
Next page token specified in user request is invalid.
ExpiredPageToken = 8
Next page token specified in user request has expired.
InvalidPageSize = 22
Page size specified in user request is invalid.
RequiredFieldMissing = 9
Required field is missing.
ImmutableField = 11
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’.
TooManyMutateOperations = 13
Received too many entries in request.
CannotBeExecutedByManagerAccount = 14
Request cannot be executed by a manager account.
CannotModifyForeignField = 15
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.
InvalidEnumValue = 18
Enum value is not permitted.
DeveloperTokenParameterMissing = 19
The developer-token parameter is required for all requests.
LoginCustomerIdParameterMissing = 20
The login-customer-id parameter is required for this request.
ValidateOnlyRequestHasPageToken = 21
page_token is set in the validate only request
CannotReturnSummaryRowForRequestWithoutMetrics = 29
return_summary_row cannot be enabled if request did not select any metrics field.
CannotReturnSummaryRowForValidateOnlyRequests = 30
return_summary_row should not be enabled for validate only requests.
InconsistentReturnSummaryRowValue = 31
return_summary_row parameter value should be the same between requests with page_token field set and their original request.
TotalResultsCountNotOriginallyRequested = 32
The total results count cannot be returned if it was not requested in the original request.
RpcDeadlineTooShort = 33
Deadline specified by the client was too short.
UnsupportedVersion = 38
This API version has been sunset and is no longer supported.
CloudProjectNotFound = 39
The Google Cloud project in the request was not found.
Implementations§
source§impl RequestError
impl RequestError
source§impl RequestError
impl RequestError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RequestError
impl Clone for RequestError
source§fn clone(&self) -> RequestError
fn clone(&self) -> RequestError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestError
impl Debug for RequestError
source§impl Default for RequestError
impl Default for RequestError
source§fn default() -> RequestError
fn default() -> RequestError
source§impl From<RequestError> for i32
impl From<RequestError> for i32
source§fn from(value: RequestError) -> i32
fn from(value: RequestError) -> i32
source§impl Hash for RequestError
impl Hash for RequestError
source§impl Ord for RequestError
impl Ord for RequestError
source§fn cmp(&self, other: &RequestError) -> Ordering
fn cmp(&self, other: &RequestError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RequestError
impl PartialEq for RequestError
source§fn eq(&self, other: &RequestError) -> bool
fn eq(&self, other: &RequestError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RequestError
impl PartialOrd for RequestError
source§fn partial_cmp(&self, other: &RequestError) -> Option<Ordering>
fn partial_cmp(&self, other: &RequestError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RequestError
impl TryFrom<i32> for RequestError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<RequestError, DecodeError>
fn try_from(value: i32) -> Result<RequestError, DecodeError>
impl Copy for RequestError
impl Eq for RequestError
impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request