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

target.apidocs.com.google.api.services.servicemanagement.model.Status.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241106-2.0.0
Show newest version






Status (Service Management API v1-rev20240823-2.0.0)












com.google.api.services.servicemanagement.model

Class Status

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


    public final class Status
    extends com.google.api.client.json.GenericJson
    The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

    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 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

      • Status

        public Status()
    • Method Detail

      • getCode

        public Integer getCode()
        The status code, which should be an enum value of google.rpc.Code.
        Returns:
        value or null for none
      • setCode

        public Status setCode(Integer code)
        The status code, which should be an enum value of google.rpc.Code.
        Parameters:
        code - code or null for none
      • getDetails

        public List<Map<String,Object>> getDetails()
        A list of messages that carry the error details. There is a common set of message types for APIs to use.
        Returns:
        value or null for none
      • setDetails

        public Status setDetails(List<Map<String,Object>> details)
        A list of messages that carry the error details. There is a common set of message types for APIs to use.
        Parameters:
        details - details or null for none
      • getMessage

        public String getMessage()
        A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
        Returns:
        value or null for none
      • setMessage

        public Status setMessage(String message)
        A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
        Parameters:
        message - message or null for none
      • set

        public Status set(String fieldName,
                          Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Status clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy