#include <detections_resource_items.h>
Detailed Description
Constructor & Destructor Documentation
google_translate_api::DetectionsResourceItems::DetectionsResourceItems |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::DetectionsResourceItems::DetectionsResourceItems |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::DetectionsResourceItems::~DetectionsResourceItems |
( |
| ) |
|
|
virtual |
Member Function Documentation
void google_translate_api::DetectionsResourceItems::clear_confidence |
( |
| ) |
|
|
inline |
Clears the 'confidence
' attribute.
void google_translate_api::DetectionsResourceItems::clear_is_reliable |
( |
| ) |
|
|
inline |
Clears the 'isReliable
' attribute.
void google_translate_api::DetectionsResourceItems::clear_language |
( |
| ) |
|
|
inline |
Clears the 'language
' attribute.
float google_translate_api::DetectionsResourceItems::get_confidence |
( |
| ) |
const |
|
inline |
Get the value of the 'confidence
' attribute.
bool google_translate_api::DetectionsResourceItems::get_is_reliable |
( |
| ) |
const |
|
inline |
Get the value of the 'isReliable
' attribute.
const StringPiece google_translate_api::DetectionsResourceItems::get_language |
( |
| ) |
const |
|
inline |
Get the value of the 'language
' attribute.
const StringPiece google_translate_api::DetectionsResourceItems::GetTypeName |
( |
| ) |
const |
|
inline |
bool google_translate_api::DetectionsResourceItems::has_confidence |
( |
| ) |
const |
|
inline |
Determine if the 'confidence
' attribute was set.
- Returns
- true if the '
confidence
' attribute was set.
bool google_translate_api::DetectionsResourceItems::has_is_reliable |
( |
| ) |
const |
|
inline |
Determine if the 'isReliable
' attribute was set.
- Returns
- true if the '
isReliable
' attribute was set.
bool google_translate_api::DetectionsResourceItems::has_language |
( |
| ) |
const |
|
inline |
Determine if the 'language
' attribute was set.
- Returns
- true if the '
language
' attribute was set.
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
void google_translate_api::DetectionsResourceItems::set_confidence |
( |
float |
value | ) |
|
|
inline |
Change the 'confidence
' attribute.
The confidence of the detection result of this language.
- Parameters
-
void google_translate_api::DetectionsResourceItems::set_is_reliable |
( |
bool |
value | ) |
|
|
inline |
Change the 'isReliable
' attribute.
A boolean to indicate is the language detection result reliable.
- Parameters
-
void google_translate_api::DetectionsResourceItems::set_language |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'language
' attribute.
The language we detected.
- Parameters
-
The documentation for this class was generated from the following files: