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

target.apidocs.com.google.api.services.compute.model.LocalizedMessage.html Maven / Gradle / Ivy

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






LocalizedMessage (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class LocalizedMessage

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


    public final class LocalizedMessage
    extends com.google.api.client.json.GenericJson
    Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

    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 Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • LocalizedMessage

        public LocalizedMessage()
    • Method Detail

      • getLocale

        public String getLocale()
        The locale used following the specification defined at https://www.rfc- editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
        Returns:
        value or null for none
      • setLocale

        public LocalizedMessage setLocale(String locale)
        The locale used following the specification defined at https://www.rfc- editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
        Parameters:
        locale - locale or null for none
      • getMessage

        public String getMessage()
        The localized error message in the above locale.
        Returns:
        value or null for none
      • setMessage

        public LocalizedMessage setMessage(String message)
        The localized error message in the above locale.
        Parameters:
        message - message or null for none
      • clone

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

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy