All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.serviceconsumermanagement.v1.model.CustomError.html Maven / Gradle / Ivy







CustomError (Service Consumer Management API v1-rev20210525-1.31.0)












com.google.api.services.serviceconsumermanagement.v1.model

Class CustomError

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class CustomError
    extends GenericJson
    Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Consumer Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • CustomError

        public CustomError()
    • Method Detail

      • getRules

        public List<CustomErrorRule> getRules()
        The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow "last one wins" order.
        Returns:
        value or null for none
      • setRules

        public CustomError setRules(List<CustomErrorRule> rules)
        The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow "last one wins" order.
        Parameters:
        rules - rules or null for none
      • getTypes

        public List<String> getTypes()
        The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
        Returns:
        value or null for none
      • setTypes

        public CustomError setTypes(List<String> types)
        The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
        Parameters:
        types - types or null for none

Copyright © 2011–2021 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy