<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/rpc/error_details.proto namespace Google\Rpc; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Provides a localized error message that is safe to return to the user * which can be attached to an RPC error. * * Generated from protobuf message <code>google.rpc.LocalizedMessage</code> */ class LocalizedMessage extends \Google\Protobuf\Internal\Message { /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field <code>string locale = 1;</code> */ private $locale = ''; /** * The localized error message in the above locale. * * Generated from protobuf field <code>string message = 2;</code> */ private $message = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $locale * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * @type string $message * The localized error message in the above locale. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field <code>string locale = 1;</code> * @return string */ public function getLocale() { return $this->locale; } /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field <code>string locale = 1;</code> * @param string $var * @return $this */ public function setLocale($var) { GPBUtil::checkString($var, True); $this->locale = $var; return $this; } /** * The localized error message in the above locale. * * Generated from protobuf field <code>string message = 2;</code> * @return string */ public function getMessage() { return $this->message; } /** * The localized error message in the above locale. * * Generated from protobuf field <code>string message = 2;</code> * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
BadRequest | Folder | 2755 |
|
|
Help | Folder | 2755 |
|
|
PreconditionFailure | Folder | 2755 |
|
|
QuotaFailure | Folder | 2755 |
|
|
BadRequest.php | File | 2.08 KB | 0644 |
|
BadRequest_FieldViolation.php | File | 536 B | 0644 |
|
Code.php | File | 9.43 KB | 0644 |
|
DebugInfo.php | File | 2.71 KB | 0644 |
|
ErrorInfo.php | File | 7.94 KB | 0644 |
|
Help.php | File | 2.17 KB | 0644 |
|
Help_Link.php | File | 456 B | 0644 |
|
LocalizedMessage.php | File | 2.91 KB | 0644 |
|
PreconditionFailure.php | File | 2.15 KB | 0644 |
|
PreconditionFailure_Violation.php | File | 556 B | 0644 |
|
QuotaFailure.php | File | 2.35 KB | 0644 |
|
QuotaFailure_Violation.php | File | 521 B | 0644 |
|
RequestInfo.php | File | 3.4 KB | 0644 |
|
ResourceInfo.php | File | 6.58 KB | 0644 |
|
RetryInfo.php | File | 2.44 KB | 0644 |
|
Status.php | File | 5 KB | 0644 |
|