blob: b666423662a86835773f253f78ebf9490ed65b30 [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google_streaming_api.proto
#ifndef PROTOBUF_google_5fstreaming_5fapi_2eproto__INCLUDED
#define PROTOBUF_google_5fstreaming_5fapi_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2004000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2004002 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
// @@protoc_insertion_point(includes)
namespace cobalt {
namespace speech {
namespace proto {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_google_5fstreaming_5fapi_2eproto();
void protobuf_AssignDesc_google_5fstreaming_5fapi_2eproto();
void protobuf_ShutdownFile_google_5fstreaming_5fapi_2eproto();
class SpeechRecognitionEvent;
class SpeechRecognitionResult;
class SpeechRecognitionAlternative;
enum SpeechRecognitionEvent_StatusCode {
SpeechRecognitionEvent_StatusCode_STATUS_SUCCESS = 0,
SpeechRecognitionEvent_StatusCode_STATUS_NO_SPEECH = 1,
SpeechRecognitionEvent_StatusCode_STATUS_ABORTED = 2,
SpeechRecognitionEvent_StatusCode_STATUS_AUDIO_CAPTURE = 3,
SpeechRecognitionEvent_StatusCode_STATUS_NETWORK = 4,
SpeechRecognitionEvent_StatusCode_STATUS_NOT_ALLOWED = 5,
SpeechRecognitionEvent_StatusCode_STATUS_SERVICE_NOT_ALLOWED = 6,
SpeechRecognitionEvent_StatusCode_STATUS_BAD_GRAMMAR = 7,
SpeechRecognitionEvent_StatusCode_STATUS_LANGUAGE_NOT_SUPPORTED = 8
};
bool SpeechRecognitionEvent_StatusCode_IsValid(int value);
const SpeechRecognitionEvent_StatusCode SpeechRecognitionEvent_StatusCode_StatusCode_MIN = SpeechRecognitionEvent_StatusCode_STATUS_SUCCESS;
const SpeechRecognitionEvent_StatusCode SpeechRecognitionEvent_StatusCode_StatusCode_MAX = SpeechRecognitionEvent_StatusCode_STATUS_LANGUAGE_NOT_SUPPORTED;
const int SpeechRecognitionEvent_StatusCode_StatusCode_ARRAYSIZE = SpeechRecognitionEvent_StatusCode_StatusCode_MAX + 1;
enum SpeechRecognitionEvent_EndpointerEventType {
SpeechRecognitionEvent_EndpointerEventType_START_OF_SPEECH = 0,
SpeechRecognitionEvent_EndpointerEventType_END_OF_SPEECH = 1,
SpeechRecognitionEvent_EndpointerEventType_END_OF_AUDIO = 2,
SpeechRecognitionEvent_EndpointerEventType_END_OF_UTTERANCE = 3
};
bool SpeechRecognitionEvent_EndpointerEventType_IsValid(int value);
const SpeechRecognitionEvent_EndpointerEventType SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_MIN = SpeechRecognitionEvent_EndpointerEventType_START_OF_SPEECH;
const SpeechRecognitionEvent_EndpointerEventType SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_MAX = SpeechRecognitionEvent_EndpointerEventType_END_OF_UTTERANCE;
const int SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_ARRAYSIZE = SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_MAX + 1;
// ===================================================================
class SpeechRecognitionEvent : public ::google::protobuf::MessageLite {
public:
SpeechRecognitionEvent();
virtual ~SpeechRecognitionEvent();
SpeechRecognitionEvent(const SpeechRecognitionEvent& from);
inline SpeechRecognitionEvent& operator=(const SpeechRecognitionEvent& from) {
CopyFrom(from);
return *this;
}
static const SpeechRecognitionEvent& default_instance();
void Swap(SpeechRecognitionEvent* other);
// implements Message ----------------------------------------------
SpeechRecognitionEvent* New() const;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
void CopyFrom(const SpeechRecognitionEvent& from);
void MergeFrom(const SpeechRecognitionEvent& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::std::string GetTypeName() const;
// nested types ----------------------------------------------------
typedef SpeechRecognitionEvent_StatusCode StatusCode;
static const StatusCode STATUS_SUCCESS = SpeechRecognitionEvent_StatusCode_STATUS_SUCCESS;
static const StatusCode STATUS_NO_SPEECH = SpeechRecognitionEvent_StatusCode_STATUS_NO_SPEECH;
static const StatusCode STATUS_ABORTED = SpeechRecognitionEvent_StatusCode_STATUS_ABORTED;
static const StatusCode STATUS_AUDIO_CAPTURE = SpeechRecognitionEvent_StatusCode_STATUS_AUDIO_CAPTURE;
static const StatusCode STATUS_NETWORK = SpeechRecognitionEvent_StatusCode_STATUS_NETWORK;
static const StatusCode STATUS_NOT_ALLOWED = SpeechRecognitionEvent_StatusCode_STATUS_NOT_ALLOWED;
static const StatusCode STATUS_SERVICE_NOT_ALLOWED = SpeechRecognitionEvent_StatusCode_STATUS_SERVICE_NOT_ALLOWED;
static const StatusCode STATUS_BAD_GRAMMAR = SpeechRecognitionEvent_StatusCode_STATUS_BAD_GRAMMAR;
static const StatusCode STATUS_LANGUAGE_NOT_SUPPORTED = SpeechRecognitionEvent_StatusCode_STATUS_LANGUAGE_NOT_SUPPORTED;
static inline bool StatusCode_IsValid(int value) {
return SpeechRecognitionEvent_StatusCode_IsValid(value);
}
static const StatusCode StatusCode_MIN =
SpeechRecognitionEvent_StatusCode_StatusCode_MIN;
static const StatusCode StatusCode_MAX =
SpeechRecognitionEvent_StatusCode_StatusCode_MAX;
static const int StatusCode_ARRAYSIZE =
SpeechRecognitionEvent_StatusCode_StatusCode_ARRAYSIZE;
typedef SpeechRecognitionEvent_EndpointerEventType EndpointerEventType;
static const EndpointerEventType START_OF_SPEECH = SpeechRecognitionEvent_EndpointerEventType_START_OF_SPEECH;
static const EndpointerEventType END_OF_SPEECH = SpeechRecognitionEvent_EndpointerEventType_END_OF_SPEECH;
static const EndpointerEventType END_OF_AUDIO = SpeechRecognitionEvent_EndpointerEventType_END_OF_AUDIO;
static const EndpointerEventType END_OF_UTTERANCE = SpeechRecognitionEvent_EndpointerEventType_END_OF_UTTERANCE;
static inline bool EndpointerEventType_IsValid(int value) {
return SpeechRecognitionEvent_EndpointerEventType_IsValid(value);
}
static const EndpointerEventType EndpointerEventType_MIN =
SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_MIN;
static const EndpointerEventType EndpointerEventType_MAX =
SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_MAX;
static const int EndpointerEventType_ARRAYSIZE =
SpeechRecognitionEvent_EndpointerEventType_EndpointerEventType_ARRAYSIZE;
// accessors -------------------------------------------------------
// optional .cobalt.speech.proto.SpeechRecognitionEvent.StatusCode status = 1 [default = STATUS_SUCCESS];
inline bool has_status() const;
inline void clear_status();
static const int kStatusFieldNumber = 1;
inline ::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode status() const;
inline void set_status(::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode value);
// repeated .cobalt.speech.proto.SpeechRecognitionResult result = 2;
inline int result_size() const;
inline void clear_result();
static const int kResultFieldNumber = 2;
inline const ::cobalt::speech::proto::SpeechRecognitionResult& result(int index) const;
inline ::cobalt::speech::proto::SpeechRecognitionResult* mutable_result(int index);
inline ::cobalt::speech::proto::SpeechRecognitionResult* add_result();
inline const ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionResult >&
result() const;
inline ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionResult >*
mutable_result();
// optional .cobalt.speech.proto.SpeechRecognitionEvent.EndpointerEventType endpoint = 4;
inline bool has_endpoint() const;
inline void clear_endpoint();
static const int kEndpointFieldNumber = 4;
inline ::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType endpoint() const;
inline void set_endpoint(::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType value);
// @@protoc_insertion_point(class_scope:cobalt.speech.proto.SpeechRecognitionEvent)
private:
inline void set_has_status();
inline void clear_has_status();
inline void set_has_endpoint();
inline void clear_has_endpoint();
::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionResult > result_;
int status_;
int endpoint_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
friend void protobuf_AddDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_AssignDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_ShutdownFile_google_5fstreaming_5fapi_2eproto();
void InitAsDefaultInstance();
static SpeechRecognitionEvent* default_instance_;
};
// -------------------------------------------------------------------
class SpeechRecognitionResult : public ::google::protobuf::MessageLite {
public:
SpeechRecognitionResult();
virtual ~SpeechRecognitionResult();
SpeechRecognitionResult(const SpeechRecognitionResult& from);
inline SpeechRecognitionResult& operator=(const SpeechRecognitionResult& from) {
CopyFrom(from);
return *this;
}
static const SpeechRecognitionResult& default_instance();
void Swap(SpeechRecognitionResult* other);
// implements Message ----------------------------------------------
SpeechRecognitionResult* New() const;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
void CopyFrom(const SpeechRecognitionResult& from);
void MergeFrom(const SpeechRecognitionResult& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::std::string GetTypeName() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// repeated .cobalt.speech.proto.SpeechRecognitionAlternative alternative = 1;
inline int alternative_size() const;
inline void clear_alternative();
static const int kAlternativeFieldNumber = 1;
inline const ::cobalt::speech::proto::SpeechRecognitionAlternative& alternative(int index) const;
inline ::cobalt::speech::proto::SpeechRecognitionAlternative* mutable_alternative(int index);
inline ::cobalt::speech::proto::SpeechRecognitionAlternative* add_alternative();
inline const ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionAlternative >&
alternative() const;
inline ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionAlternative >*
mutable_alternative();
// optional bool final = 2 [default = false];
inline bool has_final() const;
inline void clear_final();
static const int kFinalFieldNumber = 2;
inline bool final() const;
inline void set_final(bool value);
// optional float stability = 3;
inline bool has_stability() const;
inline void clear_stability();
static const int kStabilityFieldNumber = 3;
inline float stability() const;
inline void set_stability(float value);
// @@protoc_insertion_point(class_scope:cobalt.speech.proto.SpeechRecognitionResult)
private:
inline void set_has_final();
inline void clear_has_final();
inline void set_has_stability();
inline void clear_has_stability();
::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionAlternative > alternative_;
bool final_;
float stability_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
friend void protobuf_AddDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_AssignDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_ShutdownFile_google_5fstreaming_5fapi_2eproto();
void InitAsDefaultInstance();
static SpeechRecognitionResult* default_instance_;
};
// -------------------------------------------------------------------
class SpeechRecognitionAlternative : public ::google::protobuf::MessageLite {
public:
SpeechRecognitionAlternative();
virtual ~SpeechRecognitionAlternative();
SpeechRecognitionAlternative(const SpeechRecognitionAlternative& from);
inline SpeechRecognitionAlternative& operator=(const SpeechRecognitionAlternative& from) {
CopyFrom(from);
return *this;
}
static const SpeechRecognitionAlternative& default_instance();
void Swap(SpeechRecognitionAlternative* other);
// implements Message ----------------------------------------------
SpeechRecognitionAlternative* New() const;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
void CopyFrom(const SpeechRecognitionAlternative& from);
void MergeFrom(const SpeechRecognitionAlternative& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::std::string GetTypeName() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string transcript = 1;
inline bool has_transcript() const;
inline void clear_transcript();
static const int kTranscriptFieldNumber = 1;
inline const ::std::string& transcript() const;
inline void set_transcript(const ::std::string& value);
inline void set_transcript(const char* value);
inline void set_transcript(const char* value, size_t size);
inline ::std::string* mutable_transcript();
inline ::std::string* release_transcript();
// optional float confidence = 2;
inline bool has_confidence() const;
inline void clear_confidence();
static const int kConfidenceFieldNumber = 2;
inline float confidence() const;
inline void set_confidence(float value);
// @@protoc_insertion_point(class_scope:cobalt.speech.proto.SpeechRecognitionAlternative)
private:
inline void set_has_transcript();
inline void clear_has_transcript();
inline void set_has_confidence();
inline void clear_has_confidence();
::std::string* transcript_;
float confidence_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
friend void protobuf_AddDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_AssignDesc_google_5fstreaming_5fapi_2eproto();
friend void protobuf_ShutdownFile_google_5fstreaming_5fapi_2eproto();
void InitAsDefaultInstance();
static SpeechRecognitionAlternative* default_instance_;
};
// ===================================================================
// ===================================================================
// SpeechRecognitionEvent
// optional .cobalt.speech.proto.SpeechRecognitionEvent.StatusCode status = 1 [default = STATUS_SUCCESS];
inline bool SpeechRecognitionEvent::has_status() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void SpeechRecognitionEvent::set_has_status() {
_has_bits_[0] |= 0x00000001u;
}
inline void SpeechRecognitionEvent::clear_has_status() {
_has_bits_[0] &= ~0x00000001u;
}
inline void SpeechRecognitionEvent::clear_status() {
status_ = 0;
clear_has_status();
}
inline ::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode SpeechRecognitionEvent::status() const {
return static_cast< ::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode >(status_);
}
inline void SpeechRecognitionEvent::set_status(::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode value) {
GOOGLE_DCHECK(::cobalt::speech::proto::SpeechRecognitionEvent_StatusCode_IsValid(value));
set_has_status();
status_ = value;
}
// repeated .cobalt.speech.proto.SpeechRecognitionResult result = 2;
inline int SpeechRecognitionEvent::result_size() const {
return result_.size();
}
inline void SpeechRecognitionEvent::clear_result() {
result_.Clear();
}
inline const ::cobalt::speech::proto::SpeechRecognitionResult& SpeechRecognitionEvent::result(int index) const {
return result_.Get(index);
}
inline ::cobalt::speech::proto::SpeechRecognitionResult* SpeechRecognitionEvent::mutable_result(int index) {
return result_.Mutable(index);
}
inline ::cobalt::speech::proto::SpeechRecognitionResult* SpeechRecognitionEvent::add_result() {
return result_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionResult >&
SpeechRecognitionEvent::result() const {
return result_;
}
inline ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionResult >*
SpeechRecognitionEvent::mutable_result() {
return &result_;
}
// optional .cobalt.speech.proto.SpeechRecognitionEvent.EndpointerEventType endpoint = 4;
inline bool SpeechRecognitionEvent::has_endpoint() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void SpeechRecognitionEvent::set_has_endpoint() {
_has_bits_[0] |= 0x00000004u;
}
inline void SpeechRecognitionEvent::clear_has_endpoint() {
_has_bits_[0] &= ~0x00000004u;
}
inline void SpeechRecognitionEvent::clear_endpoint() {
endpoint_ = 0;
clear_has_endpoint();
}
inline ::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType SpeechRecognitionEvent::endpoint() const {
return static_cast< ::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType >(endpoint_);
}
inline void SpeechRecognitionEvent::set_endpoint(::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType value) {
GOOGLE_DCHECK(::cobalt::speech::proto::SpeechRecognitionEvent_EndpointerEventType_IsValid(value));
set_has_endpoint();
endpoint_ = value;
}
// -------------------------------------------------------------------
// SpeechRecognitionResult
// repeated .cobalt.speech.proto.SpeechRecognitionAlternative alternative = 1;
inline int SpeechRecognitionResult::alternative_size() const {
return alternative_.size();
}
inline void SpeechRecognitionResult::clear_alternative() {
alternative_.Clear();
}
inline const ::cobalt::speech::proto::SpeechRecognitionAlternative& SpeechRecognitionResult::alternative(int index) const {
return alternative_.Get(index);
}
inline ::cobalt::speech::proto::SpeechRecognitionAlternative* SpeechRecognitionResult::mutable_alternative(int index) {
return alternative_.Mutable(index);
}
inline ::cobalt::speech::proto::SpeechRecognitionAlternative* SpeechRecognitionResult::add_alternative() {
return alternative_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionAlternative >&
SpeechRecognitionResult::alternative() const {
return alternative_;
}
inline ::google::protobuf::RepeatedPtrField< ::cobalt::speech::proto::SpeechRecognitionAlternative >*
SpeechRecognitionResult::mutable_alternative() {
return &alternative_;
}
// optional bool final = 2 [default = false];
inline bool SpeechRecognitionResult::has_final() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void SpeechRecognitionResult::set_has_final() {
_has_bits_[0] |= 0x00000002u;
}
inline void SpeechRecognitionResult::clear_has_final() {
_has_bits_[0] &= ~0x00000002u;
}
inline void SpeechRecognitionResult::clear_final() {
final_ = false;
clear_has_final();
}
inline bool SpeechRecognitionResult::final() const {
return final_;
}
inline void SpeechRecognitionResult::set_final(bool value) {
set_has_final();
final_ = value;
}
// optional float stability = 3;
inline bool SpeechRecognitionResult::has_stability() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void SpeechRecognitionResult::set_has_stability() {
_has_bits_[0] |= 0x00000004u;
}
inline void SpeechRecognitionResult::clear_has_stability() {
_has_bits_[0] &= ~0x00000004u;
}
inline void SpeechRecognitionResult::clear_stability() {
stability_ = 0;
clear_has_stability();
}
inline float SpeechRecognitionResult::stability() const {
return stability_;
}
inline void SpeechRecognitionResult::set_stability(float value) {
set_has_stability();
stability_ = value;
}
// -------------------------------------------------------------------
// SpeechRecognitionAlternative
// optional string transcript = 1;
inline bool SpeechRecognitionAlternative::has_transcript() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void SpeechRecognitionAlternative::set_has_transcript() {
_has_bits_[0] |= 0x00000001u;
}
inline void SpeechRecognitionAlternative::clear_has_transcript() {
_has_bits_[0] &= ~0x00000001u;
}
inline void SpeechRecognitionAlternative::clear_transcript() {
if (transcript_ != &::google::protobuf::internal::kEmptyString) {
transcript_->clear();
}
clear_has_transcript();
}
inline const ::std::string& SpeechRecognitionAlternative::transcript() const {
return *transcript_;
}
inline void SpeechRecognitionAlternative::set_transcript(const ::std::string& value) {
set_has_transcript();
if (transcript_ == &::google::protobuf::internal::kEmptyString) {
transcript_ = new ::std::string;
}
transcript_->assign(value);
}
inline void SpeechRecognitionAlternative::set_transcript(const char* value) {
set_has_transcript();
if (transcript_ == &::google::protobuf::internal::kEmptyString) {
transcript_ = new ::std::string;
}
transcript_->assign(value);
}
inline void SpeechRecognitionAlternative::set_transcript(const char* value, size_t size) {
set_has_transcript();
if (transcript_ == &::google::protobuf::internal::kEmptyString) {
transcript_ = new ::std::string;
}
transcript_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* SpeechRecognitionAlternative::mutable_transcript() {
set_has_transcript();
if (transcript_ == &::google::protobuf::internal::kEmptyString) {
transcript_ = new ::std::string;
}
return transcript_;
}
inline ::std::string* SpeechRecognitionAlternative::release_transcript() {
clear_has_transcript();
if (transcript_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = transcript_;
transcript_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
// optional float confidence = 2;
inline bool SpeechRecognitionAlternative::has_confidence() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void SpeechRecognitionAlternative::set_has_confidence() {
_has_bits_[0] |= 0x00000002u;
}
inline void SpeechRecognitionAlternative::clear_has_confidence() {
_has_bits_[0] &= ~0x00000002u;
}
inline void SpeechRecognitionAlternative::clear_confidence() {
confidence_ = 0;
clear_has_confidence();
}
inline float SpeechRecognitionAlternative::confidence() const {
return confidence_;
}
inline void SpeechRecognitionAlternative::set_confidence(float value) {
set_has_confidence();
confidence_ = value;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace proto
} // namespace speech
} // namespace cobalt
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_google_5fstreaming_5fapi_2eproto__INCLUDED