convai-web-sdk
Version:
Integrate lifelike digital beings into your web applications with real-time conversations, actions, and facial expressions. Supports a variety of voices, languages, and emotions.
1 lines • 270 kB
JavaScript
import*as e from"react";var t={186:(e,t,o)=>{var r=o(339),i=r,s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==s&&s||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(657);i.object.extend(proto,n),i.exportSymbol("proto.service.ActionConfig",null,s),i.exportSymbol("proto.service.ActionConfig.Character",null,s),i.exportSymbol("proto.service.ActionConfig.Object",null,s),i.exportSymbol("proto.service.AudioConfig",null,s),i.exportSymbol("proto.service.BlendShapesData",null,s),i.exportSymbol("proto.service.DynamicInfoConfig",null,s),i.exportSymbol("proto.service.EmotionResponse",null,s),i.exportSymbol("proto.service.FaceModel",null,s),i.exportSymbol("proto.service.FeedbackRequest",null,s),i.exportSymbol("proto.service.FeedbackRequest.Feedback",null,s),i.exportSymbol("proto.service.FeedbackResponse",null,s),i.exportSymbol("proto.service.GetResponseRequest",null,s),i.exportSymbol("proto.service.GetResponseRequest.GetResponseConfig",null,s),i.exportSymbol("proto.service.GetResponseRequest.GetResponseData",null,s),i.exportSymbol("proto.service.GetResponseRequest.GetResponseData.InputTypeCase",null,s),i.exportSymbol("proto.service.GetResponseRequest.RequestTypeCase",null,s),i.exportSymbol("proto.service.GetResponseRequestSingle",null,s),i.exportSymbol("proto.service.GetResponseResponse",null,s),i.exportSymbol("proto.service.GetResponseResponse.ActionResponse",null,s),i.exportSymbol("proto.service.GetResponseResponse.AudioResponse",null,s),i.exportSymbol("proto.service.GetResponseResponse.AudioResponse.FaceDataTypeCase",null,s),i.exportSymbol("proto.service.GetResponseResponse.BehaviorTreeResponse",null,s),i.exportSymbol("proto.service.GetResponseResponse.ResponseTypeCase",null,s),i.exportSymbol("proto.service.GetResponseResponse.UserTranscript",null,s),i.exportSymbol("proto.service.HelloRequest",null,s),i.exportSymbol("proto.service.HelloResponse",null,s),i.exportSymbol("proto.service.STTRequest",null,s),i.exportSymbol("proto.service.STTRequest.RequestTypeCase",null,s),i.exportSymbol("proto.service.STTResponse",null,s),i.exportSymbol("proto.service.SessionCache",null,s),i.exportSymbol("proto.service.SessionCache.UsageValidator",null,s),i.exportSymbol("proto.service.SessionCache.UserDetails",null,s),i.exportSymbol("proto.service.TriggerConfig",null,s),i.exportSymbol("proto.service.Viseme",null,s),i.exportSymbol("proto.service.VisemesData",null,s),i.exportSymbol("proto.service.VisionInput",null,s),i.exportSymbol("proto.service.VisionInput.ImageData",null,s),i.exportSymbol("proto.service.VisionInput.VideoData",null,s),i.exportSymbol("proto.service.VisionInput.VisionDataCase",null,s),proto.service.AudioConfig=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.AudioConfig,r.Message),i.DEBUG&&!COMPILED&&(proto.service.AudioConfig.displayName="proto.service.AudioConfig"),proto.service.TriggerConfig=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.TriggerConfig,r.Message),i.DEBUG&&!COMPILED&&(proto.service.TriggerConfig.displayName="proto.service.TriggerConfig"),proto.service.ActionConfig=function(e){r.Message.initialize(this,e,0,-1,proto.service.ActionConfig.repeatedFields_,null)},i.inherits(proto.service.ActionConfig,r.Message),i.DEBUG&&!COMPILED&&(proto.service.ActionConfig.displayName="proto.service.ActionConfig"),proto.service.ActionConfig.Character=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.ActionConfig.Character,r.Message),i.DEBUG&&!COMPILED&&(proto.service.ActionConfig.Character.displayName="proto.service.ActionConfig.Character"),proto.service.ActionConfig.Object=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.ActionConfig.Object,r.Message),i.DEBUG&&!COMPILED&&(proto.service.ActionConfig.Object.displayName="proto.service.ActionConfig.Object"),proto.service.STTRequest=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.STTRequest.oneofGroups_)},i.inherits(proto.service.STTRequest,r.Message),i.DEBUG&&!COMPILED&&(proto.service.STTRequest.displayName="proto.service.STTRequest"),proto.service.STTResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.STTResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.STTResponse.displayName="proto.service.STTResponse"),proto.service.DynamicInfoConfig=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.DynamicInfoConfig,r.Message),i.DEBUG&&!COMPILED&&(proto.service.DynamicInfoConfig.displayName="proto.service.DynamicInfoConfig"),proto.service.VisionInput=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.VisionInput.oneofGroups_)},i.inherits(proto.service.VisionInput,r.Message),i.DEBUG&&!COMPILED&&(proto.service.VisionInput.displayName="proto.service.VisionInput"),proto.service.VisionInput.ImageData=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.VisionInput.ImageData,r.Message),i.DEBUG&&!COMPILED&&(proto.service.VisionInput.ImageData.displayName="proto.service.VisionInput.ImageData"),proto.service.VisionInput.VideoData=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.VisionInput.VideoData,r.Message),i.DEBUG&&!COMPILED&&(proto.service.VisionInput.VideoData.displayName="proto.service.VisionInput.VideoData"),proto.service.GetResponseRequest=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.GetResponseRequest.oneofGroups_)},i.inherits(proto.service.GetResponseRequest,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseRequest.displayName="proto.service.GetResponseRequest"),proto.service.GetResponseRequest.GetResponseConfig=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.GetResponseRequest.GetResponseConfig,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseRequest.GetResponseConfig.displayName="proto.service.GetResponseRequest.GetResponseConfig"),proto.service.GetResponseRequest.GetResponseData=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.GetResponseRequest.GetResponseData.oneofGroups_)},i.inherits(proto.service.GetResponseRequest.GetResponseData,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseRequest.GetResponseData.displayName="proto.service.GetResponseRequest.GetResponseData"),proto.service.GetResponseRequestSingle=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.GetResponseRequestSingle,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseRequestSingle.displayName="proto.service.GetResponseRequestSingle"),proto.service.GetResponseResponse=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.GetResponseResponse.oneofGroups_)},i.inherits(proto.service.GetResponseResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseResponse.displayName="proto.service.GetResponseResponse"),proto.service.GetResponseResponse.AudioResponse=function(e){r.Message.initialize(this,e,0,-1,null,proto.service.GetResponseResponse.AudioResponse.oneofGroups_)},i.inherits(proto.service.GetResponseResponse.AudioResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseResponse.AudioResponse.displayName="proto.service.GetResponseResponse.AudioResponse"),proto.service.GetResponseResponse.ActionResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.GetResponseResponse.ActionResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseResponse.ActionResponse.displayName="proto.service.GetResponseResponse.ActionResponse"),proto.service.GetResponseResponse.BehaviorTreeResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.GetResponseResponse.BehaviorTreeResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseResponse.BehaviorTreeResponse.displayName="proto.service.GetResponseResponse.BehaviorTreeResponse"),proto.service.GetResponseResponse.UserTranscript=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.GetResponseResponse.UserTranscript,r.Message),i.DEBUG&&!COMPILED&&(proto.service.GetResponseResponse.UserTranscript.displayName="proto.service.GetResponseResponse.UserTranscript"),proto.service.VisemesData=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.VisemesData,r.Message),i.DEBUG&&!COMPILED&&(proto.service.VisemesData.displayName="proto.service.VisemesData"),proto.service.EmotionResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.EmotionResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.EmotionResponse.displayName="proto.service.EmotionResponse"),proto.service.Viseme=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.Viseme,r.Message),i.DEBUG&&!COMPILED&&(proto.service.Viseme.displayName="proto.service.Viseme"),proto.service.BlendShapesData=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.BlendShapesData,r.Message),i.DEBUG&&!COMPILED&&(proto.service.BlendShapesData.displayName="proto.service.BlendShapesData"),proto.service.HelloRequest=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.HelloRequest,r.Message),i.DEBUG&&!COMPILED&&(proto.service.HelloRequest.displayName="proto.service.HelloRequest"),proto.service.HelloResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.HelloResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.HelloResponse.displayName="proto.service.HelloResponse"),proto.service.FeedbackRequest=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.FeedbackRequest,r.Message),i.DEBUG&&!COMPILED&&(proto.service.FeedbackRequest.displayName="proto.service.FeedbackRequest"),proto.service.FeedbackRequest.Feedback=function(e){r.Message.initialize(this,e,0,-1,proto.service.FeedbackRequest.Feedback.repeatedFields_,null)},i.inherits(proto.service.FeedbackRequest.Feedback,r.Message),i.DEBUG&&!COMPILED&&(proto.service.FeedbackRequest.Feedback.displayName="proto.service.FeedbackRequest.Feedback"),proto.service.FeedbackResponse=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.FeedbackResponse,r.Message),i.DEBUG&&!COMPILED&&(proto.service.FeedbackResponse.displayName="proto.service.FeedbackResponse"),proto.service.SessionCache=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.SessionCache,r.Message),i.DEBUG&&!COMPILED&&(proto.service.SessionCache.displayName="proto.service.SessionCache"),proto.service.SessionCache.UserDetails=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.SessionCache.UserDetails,r.Message),i.DEBUG&&!COMPILED&&(proto.service.SessionCache.UserDetails.displayName="proto.service.SessionCache.UserDetails"),proto.service.SessionCache.UsageValidator=function(e){r.Message.initialize(this,e,0,-1,null,null)},i.inherits(proto.service.SessionCache.UsageValidator,r.Message),i.DEBUG&&!COMPILED&&(proto.service.SessionCache.UsageValidator.displayName="proto.service.SessionCache.UsageValidator"),r.Message.GENERATE_TO_OBJECT&&(proto.service.AudioConfig.prototype.toObject=function(e){return proto.service.AudioConfig.toObject(e,this)},proto.service.AudioConfig.toObject=function(e,t){var o={sampleRateHertz:r.Message.getFieldWithDefault(t,1,0),disableAudio:r.Message.getBooleanFieldWithDefault(t,2,!1),enableFacialData:r.Message.getBooleanFieldWithDefault(t,3,!1),faceModel:r.Message.getFieldWithDefault(t,4,0),enableFacialEmotionData:r.Message.getBooleanFieldWithDefault(t,5,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.service.AudioConfig.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.AudioConfig;return proto.service.AudioConfig.deserializeBinaryFromReader(o,t)},proto.service.AudioConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setSampleRateHertz(o);break;case 2:o=t.readBool();e.setDisableAudio(o);break;case 3:o=t.readBool();e.setEnableFacialData(o);break;case 4:o=t.readEnum();e.setFaceModel(o);break;case 5:o=t.readBool();e.setEnableFacialEmotionData(o);break;default:t.skipField()}}return e},proto.service.AudioConfig.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.AudioConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.AudioConfig.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getSampleRateHertz())&&t.writeInt32(1,o),(o=e.getDisableAudio())&&t.writeBool(2,o),(o=e.getEnableFacialData())&&t.writeBool(3,o),0!==(o=e.getFaceModel())&&t.writeEnum(4,o),(o=e.getEnableFacialEmotionData())&&t.writeBool(5,o)},proto.service.AudioConfig.prototype.getSampleRateHertz=function(){return r.Message.getFieldWithDefault(this,1,0)},proto.service.AudioConfig.prototype.setSampleRateHertz=function(e){return r.Message.setProto3IntField(this,1,e)},proto.service.AudioConfig.prototype.getDisableAudio=function(){return r.Message.getBooleanFieldWithDefault(this,2,!1)},proto.service.AudioConfig.prototype.setDisableAudio=function(e){return r.Message.setProto3BooleanField(this,2,e)},proto.service.AudioConfig.prototype.getEnableFacialData=function(){return r.Message.getBooleanFieldWithDefault(this,3,!1)},proto.service.AudioConfig.prototype.setEnableFacialData=function(e){return r.Message.setProto3BooleanField(this,3,e)},proto.service.AudioConfig.prototype.getFaceModel=function(){return r.Message.getFieldWithDefault(this,4,0)},proto.service.AudioConfig.prototype.setFaceModel=function(e){return r.Message.setProto3EnumField(this,4,e)},proto.service.AudioConfig.prototype.getEnableFacialEmotionData=function(){return r.Message.getBooleanFieldWithDefault(this,5,!1)},proto.service.AudioConfig.prototype.setEnableFacialEmotionData=function(e){return r.Message.setProto3BooleanField(this,5,e)},r.Message.GENERATE_TO_OBJECT&&(proto.service.TriggerConfig.prototype.toObject=function(e){return proto.service.TriggerConfig.toObject(e,this)},proto.service.TriggerConfig.toObject=function(e,t){var o={triggerName:r.Message.getFieldWithDefault(t,1,""),triggerMessage:r.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.service.TriggerConfig.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.TriggerConfig;return proto.service.TriggerConfig.deserializeBinaryFromReader(o,t)},proto.service.TriggerConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setTriggerName(o);break;case 2:o=t.readString();e.setTriggerMessage(o);break;default:t.skipField()}}return e},proto.service.TriggerConfig.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.TriggerConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.TriggerConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getTriggerName()).length>0&&t.writeString(1,o),(o=e.getTriggerMessage()).length>0&&t.writeString(2,o)},proto.service.TriggerConfig.prototype.getTriggerName=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.TriggerConfig.prototype.setTriggerName=function(e){return r.Message.setProto3StringField(this,1,e)},proto.service.TriggerConfig.prototype.getTriggerMessage=function(){return r.Message.getFieldWithDefault(this,2,"")},proto.service.TriggerConfig.prototype.setTriggerMessage=function(e){return r.Message.setProto3StringField(this,2,e)},proto.service.ActionConfig.repeatedFields_=[1,2,3],r.Message.GENERATE_TO_OBJECT&&(proto.service.ActionConfig.prototype.toObject=function(e){return proto.service.ActionConfig.toObject(e,this)},proto.service.ActionConfig.toObject=function(e,t){var o,i={actionsList:null==(o=r.Message.getRepeatedField(t,1))?void 0:o,charactersList:r.Message.toObjectList(t.getCharactersList(),proto.service.ActionConfig.Character.toObject,e),objectsList:r.Message.toObjectList(t.getObjectsList(),proto.service.ActionConfig.Object.toObject,e),classification:r.Message.getFieldWithDefault(t,4,""),contextLevel:r.Message.getFieldWithDefault(t,5,0),currentAttentionObject:r.Message.getFieldWithDefault(t,6,"")};return e&&(i.$jspbMessageInstance=t),i}),proto.service.ActionConfig.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.ActionConfig;return proto.service.ActionConfig.deserializeBinaryFromReader(o,t)},proto.service.ActionConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.addActions(o);break;case 2:o=new proto.service.ActionConfig.Character;t.readMessage(o,proto.service.ActionConfig.Character.deserializeBinaryFromReader),e.addCharacters(o);break;case 3:o=new proto.service.ActionConfig.Object;t.readMessage(o,proto.service.ActionConfig.Object.deserializeBinaryFromReader),e.addObjects(o);break;case 4:o=t.readString();e.setClassification(o);break;case 5:o=t.readInt32();e.setContextLevel(o);break;case 6:o=t.readString();e.setCurrentAttentionObject(o);break;default:t.skipField()}}return e},proto.service.ActionConfig.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.ActionConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.ActionConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getActionsList()).length>0&&t.writeRepeatedString(1,o),(o=e.getCharactersList()).length>0&&t.writeRepeatedMessage(2,o,proto.service.ActionConfig.Character.serializeBinaryToWriter),(o=e.getObjectsList()).length>0&&t.writeRepeatedMessage(3,o,proto.service.ActionConfig.Object.serializeBinaryToWriter),(o=e.getClassification()).length>0&&t.writeString(4,o),0!==(o=e.getContextLevel())&&t.writeInt32(5,o),(o=e.getCurrentAttentionObject()).length>0&&t.writeString(6,o)},r.Message.GENERATE_TO_OBJECT&&(proto.service.ActionConfig.Character.prototype.toObject=function(e){return proto.service.ActionConfig.Character.toObject(e,this)},proto.service.ActionConfig.Character.toObject=function(e,t){var o={name:r.Message.getFieldWithDefault(t,1,""),bio:r.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.service.ActionConfig.Character.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.ActionConfig.Character;return proto.service.ActionConfig.Character.deserializeBinaryFromReader(o,t)},proto.service.ActionConfig.Character.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setName(o);break;case 2:o=t.readString();e.setBio(o);break;default:t.skipField()}}return e},proto.service.ActionConfig.Character.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.ActionConfig.Character.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.ActionConfig.Character.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getName()).length>0&&t.writeString(1,o),(o=e.getBio()).length>0&&t.writeString(2,o)},proto.service.ActionConfig.Character.prototype.getName=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.ActionConfig.Character.prototype.setName=function(e){return r.Message.setProto3StringField(this,1,e)},proto.service.ActionConfig.Character.prototype.getBio=function(){return r.Message.getFieldWithDefault(this,2,"")},proto.service.ActionConfig.Character.prototype.setBio=function(e){return r.Message.setProto3StringField(this,2,e)},r.Message.GENERATE_TO_OBJECT&&(proto.service.ActionConfig.Object.prototype.toObject=function(e){return proto.service.ActionConfig.Object.toObject(e,this)},proto.service.ActionConfig.Object.toObject=function(e,t){var o={name:r.Message.getFieldWithDefault(t,1,""),description:r.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.service.ActionConfig.Object.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.ActionConfig.Object;return proto.service.ActionConfig.Object.deserializeBinaryFromReader(o,t)},proto.service.ActionConfig.Object.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setName(o);break;case 2:o=t.readString();e.setDescription(o);break;default:t.skipField()}}return e},proto.service.ActionConfig.Object.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.ActionConfig.Object.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.ActionConfig.Object.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getName()).length>0&&t.writeString(1,o),(o=e.getDescription()).length>0&&t.writeString(2,o)},proto.service.ActionConfig.Object.prototype.getName=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.ActionConfig.Object.prototype.setName=function(e){return r.Message.setProto3StringField(this,1,e)},proto.service.ActionConfig.Object.prototype.getDescription=function(){return r.Message.getFieldWithDefault(this,2,"")},proto.service.ActionConfig.Object.prototype.setDescription=function(e){return r.Message.setProto3StringField(this,2,e)},proto.service.ActionConfig.prototype.getActionsList=function(){return r.Message.getRepeatedField(this,1)},proto.service.ActionConfig.prototype.setActionsList=function(e){return r.Message.setField(this,1,e||[])},proto.service.ActionConfig.prototype.addActions=function(e,t){return r.Message.addToRepeatedField(this,1,e,t)},proto.service.ActionConfig.prototype.clearActionsList=function(){return this.setActionsList([])},proto.service.ActionConfig.prototype.getCharactersList=function(){return r.Message.getRepeatedWrapperField(this,proto.service.ActionConfig.Character,2)},proto.service.ActionConfig.prototype.setCharactersList=function(e){return r.Message.setRepeatedWrapperField(this,2,e)},proto.service.ActionConfig.prototype.addCharacters=function(e,t){return r.Message.addToRepeatedWrapperField(this,2,e,proto.service.ActionConfig.Character,t)},proto.service.ActionConfig.prototype.clearCharactersList=function(){return this.setCharactersList([])},proto.service.ActionConfig.prototype.getObjectsList=function(){return r.Message.getRepeatedWrapperField(this,proto.service.ActionConfig.Object,3)},proto.service.ActionConfig.prototype.setObjectsList=function(e){return r.Message.setRepeatedWrapperField(this,3,e)},proto.service.ActionConfig.prototype.addObjects=function(e,t){return r.Message.addToRepeatedWrapperField(this,3,e,proto.service.ActionConfig.Object,t)},proto.service.ActionConfig.prototype.clearObjectsList=function(){return this.setObjectsList([])},proto.service.ActionConfig.prototype.getClassification=function(){return r.Message.getFieldWithDefault(this,4,"")},proto.service.ActionConfig.prototype.setClassification=function(e){return r.Message.setProto3StringField(this,4,e)},proto.service.ActionConfig.prototype.getContextLevel=function(){return r.Message.getFieldWithDefault(this,5,0)},proto.service.ActionConfig.prototype.setContextLevel=function(e){return r.Message.setProto3IntField(this,5,e)},proto.service.ActionConfig.prototype.getCurrentAttentionObject=function(){return r.Message.getFieldWithDefault(this,6,"")},proto.service.ActionConfig.prototype.setCurrentAttentionObject=function(e){return r.Message.setProto3StringField(this,6,e)},proto.service.STTRequest.oneofGroups_=[[1,2]],proto.service.STTRequest.RequestTypeCase={REQUEST_TYPE_NOT_SET:0,AUDIO_CONFIG:1,AUDIO_CHUNK:2},proto.service.STTRequest.prototype.getRequestTypeCase=function(){return r.Message.computeOneofCase(this,proto.service.STTRequest.oneofGroups_[0])},r.Message.GENERATE_TO_OBJECT&&(proto.service.STTRequest.prototype.toObject=function(e){return proto.service.STTRequest.toObject(e,this)},proto.service.STTRequest.toObject=function(e,t){var o,r={audioConfig:(o=t.getAudioConfig())&&proto.service.AudioConfig.toObject(e,o),audioChunk:t.getAudioChunk_asB64()};return e&&(r.$jspbMessageInstance=t),r}),proto.service.STTRequest.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.STTRequest;return proto.service.STTRequest.deserializeBinaryFromReader(o,t)},proto.service.STTRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.service.AudioConfig;t.readMessage(o,proto.service.AudioConfig.deserializeBinaryFromReader),e.setAudioConfig(o);break;case 2:o=t.readBytes();e.setAudioChunk(o);break;default:t.skipField()}}return e},proto.service.STTRequest.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.STTRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.STTRequest.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getAudioConfig())&&t.writeMessage(1,o,proto.service.AudioConfig.serializeBinaryToWriter),null!=(o=r.Message.getField(e,2))&&t.writeBytes(2,o)},proto.service.STTRequest.prototype.getAudioConfig=function(){return r.Message.getWrapperField(this,proto.service.AudioConfig,1)},proto.service.STTRequest.prototype.setAudioConfig=function(e){return r.Message.setOneofWrapperField(this,1,proto.service.STTRequest.oneofGroups_[0],e)},proto.service.STTRequest.prototype.clearAudioConfig=function(){return this.setAudioConfig(void 0)},proto.service.STTRequest.prototype.hasAudioConfig=function(){return null!=r.Message.getField(this,1)},proto.service.STTRequest.prototype.getAudioChunk=function(){return r.Message.getFieldWithDefault(this,2,"")},proto.service.STTRequest.prototype.getAudioChunk_asB64=function(){return r.Message.bytesAsB64(this.getAudioChunk())},proto.service.STTRequest.prototype.getAudioChunk_asU8=function(){return r.Message.bytesAsU8(this.getAudioChunk())},proto.service.STTRequest.prototype.setAudioChunk=function(e){return r.Message.setOneofField(this,2,proto.service.STTRequest.oneofGroups_[0],e)},proto.service.STTRequest.prototype.clearAudioChunk=function(){return r.Message.setOneofField(this,2,proto.service.STTRequest.oneofGroups_[0],void 0)},proto.service.STTRequest.prototype.hasAudioChunk=function(){return null!=r.Message.getField(this,2)},r.Message.GENERATE_TO_OBJECT&&(proto.service.STTResponse.prototype.toObject=function(e){return proto.service.STTResponse.toObject(e,this)},proto.service.STTResponse.toObject=function(e,t){var o={text:r.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.service.STTResponse.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.STTResponse;return proto.service.STTResponse.deserializeBinaryFromReader(o,t)},proto.service.STTResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var o=t.readString();e.setText(o)}else t.skipField()}return e},proto.service.STTResponse.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.STTResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.STTResponse.serializeBinaryToWriter=function(e,t){var o;(o=e.getText()).length>0&&t.writeString(1,o)},proto.service.STTResponse.prototype.getText=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.STTResponse.prototype.setText=function(e){return r.Message.setProto3StringField(this,1,e)},r.Message.GENERATE_TO_OBJECT&&(proto.service.DynamicInfoConfig.prototype.toObject=function(e){return proto.service.DynamicInfoConfig.toObject(e,this)},proto.service.DynamicInfoConfig.toObject=function(e,t){var o={text:r.Message.getFieldWithDefault(t,1,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.service.DynamicInfoConfig.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.DynamicInfoConfig;return proto.service.DynamicInfoConfig.deserializeBinaryFromReader(o,t)},proto.service.DynamicInfoConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var o=t.readString();e.setText(o)}else t.skipField()}return e},proto.service.DynamicInfoConfig.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.DynamicInfoConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.DynamicInfoConfig.serializeBinaryToWriter=function(e,t){var o;(o=e.getText()).length>0&&t.writeString(1,o)},proto.service.DynamicInfoConfig.prototype.getText=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.DynamicInfoConfig.prototype.setText=function(e){return r.Message.setProto3StringField(this,1,e)},proto.service.VisionInput.oneofGroups_=[[1,2]],proto.service.VisionInput.VisionDataCase={VISION_DATA_NOT_SET:0,IMAGE_DATA:1,VIDEO_DATA:2},proto.service.VisionInput.prototype.getVisionDataCase=function(){return r.Message.computeOneofCase(this,proto.service.VisionInput.oneofGroups_[0])},r.Message.GENERATE_TO_OBJECT&&(proto.service.VisionInput.prototype.toObject=function(e){return proto.service.VisionInput.toObject(e,this)},proto.service.VisionInput.toObject=function(e,t){var o,r={imageData:(o=t.getImageData())&&proto.service.VisionInput.ImageData.toObject(e,o),videoData:(o=t.getVideoData())&&proto.service.VisionInput.VideoData.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.service.VisionInput.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.VisionInput;return proto.service.VisionInput.deserializeBinaryFromReader(o,t)},proto.service.VisionInput.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.service.VisionInput.ImageData;t.readMessage(o,proto.service.VisionInput.ImageData.deserializeBinaryFromReader),e.setImageData(o);break;case 2:o=new proto.service.VisionInput.VideoData;t.readMessage(o,proto.service.VisionInput.VideoData.deserializeBinaryFromReader),e.setVideoData(o);break;default:t.skipField()}}return e},proto.service.VisionInput.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.VisionInput.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.VisionInput.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getImageData())&&t.writeMessage(1,o,proto.service.VisionInput.ImageData.serializeBinaryToWriter),null!=(o=e.getVideoData())&&t.writeMessage(2,o,proto.service.VisionInput.VideoData.serializeBinaryToWriter)},r.Message.GENERATE_TO_OBJECT&&(proto.service.VisionInput.ImageData.prototype.toObject=function(e){return proto.service.VisionInput.ImageData.toObject(e,this)},proto.service.VisionInput.ImageData.toObject=function(e,t){var o={width:r.Message.getFieldWithDefault(t,1,0),height:r.Message.getFieldWithDefault(t,2,0),data:t.getData_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.service.VisionInput.ImageData.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.VisionInput.ImageData;return proto.service.VisionInput.ImageData.deserializeBinaryFromReader(o,t)},proto.service.VisionInput.ImageData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setWidth(o);break;case 2:o=t.readInt32();e.setHeight(o);break;case 3:o=t.readBytes();e.setData(o);break;default:t.skipField()}}return e},proto.service.VisionInput.ImageData.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.VisionInput.ImageData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.VisionInput.ImageData.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getWidth())&&t.writeInt32(1,o),0!==(o=e.getHeight())&&t.writeInt32(2,o),(o=e.getData_asU8()).length>0&&t.writeBytes(3,o)},proto.service.VisionInput.ImageData.prototype.getWidth=function(){return r.Message.getFieldWithDefault(this,1,0)},proto.service.VisionInput.ImageData.prototype.setWidth=function(e){return r.Message.setProto3IntField(this,1,e)},proto.service.VisionInput.ImageData.prototype.getHeight=function(){return r.Message.getFieldWithDefault(this,2,0)},proto.service.VisionInput.ImageData.prototype.setHeight=function(e){return r.Message.setProto3IntField(this,2,e)},proto.service.VisionInput.ImageData.prototype.getData=function(){return r.Message.getFieldWithDefault(this,3,"")},proto.service.VisionInput.ImageData.prototype.getData_asB64=function(){return r.Message.bytesAsB64(this.getData())},proto.service.VisionInput.ImageData.prototype.getData_asU8=function(){return r.Message.bytesAsU8(this.getData())},proto.service.VisionInput.ImageData.prototype.setData=function(e){return r.Message.setProto3BytesField(this,3,e)},r.Message.GENERATE_TO_OBJECT&&(proto.service.VisionInput.VideoData.prototype.toObject=function(e){return proto.service.VisionInput.VideoData.toObject(e,this)},proto.service.VisionInput.VideoData.toObject=function(e,t){var o={fps:r.Message.getFieldWithDefault(t,1,0),width:r.Message.getFieldWithDefault(t,2,0),height:r.Message.getFieldWithDefault(t,3,0),data:t.getData_asB64()};return e&&(o.$jspbMessageInstance=t),o}),proto.service.VisionInput.VideoData.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.VisionInput.VideoData;return proto.service.VisionInput.VideoData.deserializeBinaryFromReader(o,t)},proto.service.VisionInput.VideoData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setFps(o);break;case 2:o=t.readInt32();e.setWidth(o);break;case 3:o=t.readInt32();e.setHeight(o);break;case 4:o=t.readBytes();e.setData(o);break;default:t.skipField()}}return e},proto.service.VisionInput.VideoData.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.VisionInput.VideoData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.VisionInput.VideoData.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getFps())&&t.writeInt32(1,o),0!==(o=e.getWidth())&&t.writeInt32(2,o),0!==(o=e.getHeight())&&t.writeInt32(3,o),(o=e.getData_asU8()).length>0&&t.writeBytes(4,o)},proto.service.VisionInput.VideoData.prototype.getFps=function(){return r.Message.getFieldWithDefault(this,1,0)},proto.service.VisionInput.VideoData.prototype.setFps=function(e){return r.Message.setProto3IntField(this,1,e)},proto.service.VisionInput.VideoData.prototype.getWidth=function(){return r.Message.getFieldWithDefault(this,2,0)},proto.service.VisionInput.VideoData.prototype.setWidth=function(e){return r.Message.setProto3IntField(this,2,e)},proto.service.VisionInput.VideoData.prototype.getHeight=function(){return r.Message.getFieldWithDefault(this,3,0)},proto.service.VisionInput.VideoData.prototype.setHeight=function(e){return r.Message.setProto3IntField(this,3,e)},proto.service.VisionInput.VideoData.prototype.getData=function(){return r.Message.getFieldWithDefault(this,4,"")},proto.service.VisionInput.VideoData.prototype.getData_asB64=function(){return r.Message.bytesAsB64(this.getData())},proto.service.VisionInput.VideoData.prototype.getData_asU8=function(){return r.Message.bytesAsU8(this.getData())},proto.service.VisionInput.VideoData.prototype.setData=function(e){return r.Message.setProto3BytesField(this,4,e)},proto.service.VisionInput.prototype.getImageData=function(){return r.Message.getWrapperField(this,proto.service.VisionInput.ImageData,1)},proto.service.VisionInput.prototype.setImageData=function(e){return r.Message.setOneofWrapperField(this,1,proto.service.VisionInput.oneofGroups_[0],e)},proto.service.VisionInput.prototype.clearImageData=function(){return this.setImageData(void 0)},proto.service.VisionInput.prototype.hasImageData=function(){return null!=r.Message.getField(this,1)},proto.service.VisionInput.prototype.getVideoData=function(){return r.Message.getWrapperField(this,proto.service.VisionInput.VideoData,2)},proto.service.VisionInput.prototype.setVideoData=function(e){return r.Message.setOneofWrapperField(this,2,proto.service.VisionInput.oneofGroups_[0],e)},proto.service.VisionInput.prototype.clearVideoData=function(){return this.setVideoData(void 0)},proto.service.VisionInput.prototype.hasVideoData=function(){return null!=r.Message.getField(this,2)},proto.service.GetResponseRequest.oneofGroups_=[[1,2]],proto.service.GetResponseRequest.RequestTypeCase={REQUEST_TYPE_NOT_SET:0,GET_RESPONSE_CONFIG:1,GET_RESPONSE_DATA:2},proto.service.GetResponseRequest.prototype.getRequestTypeCase=function(){return r.Message.computeOneofCase(this,proto.service.GetResponseRequest.oneofGroups_[0])},r.Message.GENERATE_TO_OBJECT&&(proto.service.GetResponseRequest.prototype.toObject=function(e){return proto.service.GetResponseRequest.toObject(e,this)},proto.service.GetResponseRequest.toObject=function(e,t){var o,r={getResponseConfig:(o=t.getGetResponseConfig())&&proto.service.GetResponseRequest.GetResponseConfig.toObject(e,o),getResponseData:(o=t.getGetResponseData())&&proto.service.GetResponseRequest.GetResponseData.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.service.GetResponseRequest.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.GetResponseRequest;return proto.service.GetResponseRequest.deserializeBinaryFromReader(o,t)},proto.service.GetResponseRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.service.GetResponseRequest.GetResponseConfig;t.readMessage(o,proto.service.GetResponseRequest.GetResponseConfig.deserializeBinaryFromReader),e.setGetResponseConfig(o);break;case 2:o=new proto.service.GetResponseRequest.GetResponseData;t.readMessage(o,proto.service.GetResponseRequest.GetResponseData.deserializeBinaryFromReader),e.setGetResponseData(o);break;default:t.skipField()}}return e},proto.service.GetResponseRequest.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.GetResponseRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.GetResponseRequest.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGetResponseConfig())&&t.writeMessage(1,o,proto.service.GetResponseRequest.GetResponseConfig.serializeBinaryToWriter),null!=(o=e.getGetResponseData())&&t.writeMessage(2,o,proto.service.GetResponseRequest.GetResponseData.serializeBinaryToWriter)},r.Message.GENERATE_TO_OBJECT&&(proto.service.GetResponseRequest.GetResponseConfig.prototype.toObject=function(e){return proto.service.GetResponseRequest.GetResponseConfig.toObject(e,this)},proto.service.GetResponseRequest.GetResponseConfig.toObject=function(e,t){var o,i={characterId:r.Message.getFieldWithDefault(t,2,""),apiKey:r.Message.getFieldWithDefault(t,3,""),sessionId:r.Message.getFieldWithDefault(t,4,""),audioConfig:(o=t.getAudioConfig())&&proto.service.AudioConfig.toObject(e,o),actionConfig:(o=t.getActionConfig())&&proto.service.ActionConfig.toObject(e,o),speaker:r.Message.getFieldWithDefault(t,7,""),languageCode:r.Message.getFieldWithDefault(t,8,""),speakerId:r.Message.getFieldWithDefault(t,9,""),apiAuthToken:r.Message.getFieldWithDefault(t,10,""),narrativeTemplateKeysMap:(o=t.getNarrativeTemplateKeysMap())?o.toObject(e,void 0):[],dynamicInfoConfig:(o=t.getDynamicInfoConfig())&&proto.service.DynamicInfoConfig.toObject(e,o),visionInput:(o=t.getVisionInput())&&proto.service.VisionInput.toObject(e,o),clientUid:r.Message.getFieldWithDefault(t,14,""),browserData:r.Message.getFieldWithDefault(t,15,"")};return e&&(i.$jspbMessageInstance=t),i}),proto.service.GetResponseRequest.GetResponseConfig.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.GetResponseRequest.GetResponseConfig;return proto.service.GetResponseRequest.GetResponseConfig.deserializeBinaryFromReader(o,t)},proto.service.GetResponseRequest.GetResponseConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 2:var o=t.readString();e.setCharacterId(o);break;case 3:o=t.readString();e.setApiKey(o);break;case 4:o=t.readString();e.setSessionId(o);break;case 5:o=new proto.service.AudioConfig;t.readMessage(o,proto.service.AudioConfig.deserializeBinaryFromReader),e.setAudioConfig(o);break;case 6:o=new proto.service.ActionConfig;t.readMessage(o,proto.service.ActionConfig.deserializeBinaryFromReader),e.setActionConfig(o);break;case 7:o=t.readString();e.setSpeaker(o);break;case 8:o=t.readString();e.setLanguageCode(o);break;case 9:o=t.readString();e.setSpeakerId(o);break;case 10:o=t.readString();e.setApiAuthToken(o);break;case 11:o=e.getNarrativeTemplateKeysMap();t.readMessage(o,function(e,t){r.Map.deserializeBinary(e,t,r.BinaryReader.prototype.readString,r.BinaryReader.prototype.readString,null,"","")});break;case 12:o=new proto.service.DynamicInfoConfig;t.readMessage(o,proto.service.DynamicInfoConfig.deserializeBinaryFromReader),e.setDynamicInfoConfig(o);break;case 13:o=new proto.service.VisionInput;t.readMessage(o,proto.service.VisionInput.deserializeBinaryFromReader),e.setVisionInput(o);break;case 14:o=t.readString();e.setClientUid(o);break;case 15:o=t.readString();e.setBrowserData(o);break;default:t.skipField()}}return e},proto.service.GetResponseRequest.GetResponseConfig.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.GetResponseRequest.GetResponseConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.GetResponseRequest.GetResponseConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getCharacterId()).length>0&&t.writeString(2,o),(o=e.getApiKey()).length>0&&t.writeString(3,o),(o=e.getSessionId()).length>0&&t.writeString(4,o),null!=(o=e.getAudioConfig())&&t.writeMessage(5,o,proto.service.AudioConfig.serializeBinaryToWriter),null!=(o=e.getActionConfig())&&t.writeMessage(6,o,proto.service.ActionConfig.serializeBinaryToWriter),(o=e.getSpeaker()).length>0&&t.writeString(7,o),(o=e.getLanguageCode()).length>0&&t.writeString(8,o),(o=e.getSpeakerId()).length>0&&t.writeString(9,o),(o=e.getApiAuthToken()).length>0&&t.writeString(10,o),(o=e.getNarrativeTemplateKeysMap(!0))&&o.getLength()>0&&o.serializeBinary(11,t,r.BinaryWriter.prototype.writeString,r.BinaryWriter.prototype.writeString),null!=(o=e.getDynamicInfoConfig())&&t.writeMessage(12,o,proto.service.DynamicInfoConfig.serializeBinaryToWriter),null!=(o=e.getVisionInput())&&t.writeMessage(13,o,proto.service.VisionInput.serializeBinaryToWriter),(o=e.getClientUid()).length>0&&t.writeString(14,o),(o=e.getBrowserData()).length>0&&t.writeString(15,o)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getCharacterId=function(){return r.Message.getFieldWithDefault(this,2,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setCharacterId=function(e){return r.Message.setProto3StringField(this,2,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getApiKey=function(){return r.Message.getFieldWithDefault(this,3,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setApiKey=function(e){return r.Message.setProto3StringField(this,3,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getSessionId=function(){return r.Message.getFieldWithDefault(this,4,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setSessionId=function(e){return r.Message.setProto3StringField(this,4,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getAudioConfig=function(){return r.Message.getWrapperField(this,proto.service.AudioConfig,5)},proto.service.GetResponseRequest.GetResponseConfig.prototype.setAudioConfig=function(e){return r.Message.setWrapperField(this,5,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.clearAudioConfig=function(){return this.setAudioConfig(void 0)},proto.service.GetResponseRequest.GetResponseConfig.prototype.hasAudioConfig=function(){return null!=r.Message.getField(this,5)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getActionConfig=function(){return r.Message.getWrapperField(this,proto.service.ActionConfig,6)},proto.service.GetResponseRequest.GetResponseConfig.prototype.setActionConfig=function(e){return r.Message.setWrapperField(this,6,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.clearActionConfig=function(){return this.setActionConfig(void 0)},proto.service.GetResponseRequest.GetResponseConfig.prototype.hasActionConfig=function(){return null!=r.Message.getField(this,6)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getSpeaker=function(){return r.Message.getFieldWithDefault(this,7,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setSpeaker=function(e){return r.Message.setProto3StringField(this,7,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getLanguageCode=function(){return r.Message.getFieldWithDefault(this,8,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setLanguageCode=function(e){return r.Message.setProto3StringField(this,8,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getSpeakerId=function(){return r.Message.getFieldWithDefault(this,9,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setSpeakerId=function(e){return r.Message.setProto3StringField(this,9,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getApiAuthToken=function(){return r.Message.getFieldWithDefault(this,10,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setApiAuthToken=function(e){return r.Message.setProto3StringField(this,10,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getNarrativeTemplateKeysMap=function(e){return r.Message.getMapField(this,11,e,null)},proto.service.GetResponseRequest.GetResponseConfig.prototype.clearNarrativeTemplateKeysMap=function(){return this.getNarrativeTemplateKeysMap().clear(),this},proto.service.GetResponseRequest.GetResponseConfig.prototype.getDynamicInfoConfig=function(){return r.Message.getWrapperField(this,proto.service.DynamicInfoConfig,12)},proto.service.GetResponseRequest.GetResponseConfig.prototype.setDynamicInfoConfig=function(e){return r.Message.setWrapperField(this,12,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.clearDynamicInfoConfig=function(){return this.setDynamicInfoConfig(void 0)},proto.service.GetResponseRequest.GetResponseConfig.prototype.hasDynamicInfoConfig=function(){return null!=r.Message.getField(this,12)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getVisionInput=function(){return r.Message.getWrapperField(this,proto.service.VisionInput,13)},proto.service.GetResponseRequest.GetResponseConfig.prototype.setVisionInput=function(e){return r.Message.setWrapperField(this,13,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.clearVisionInput=function(){return this.setVisionInput(void 0)},proto.service.GetResponseRequest.GetResponseConfig.prototype.hasVisionInput=function(){return null!=r.Message.getField(this,13)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getClientUid=function(){return r.Message.getFieldWithDefault(this,14,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setClientUid=function(e){return r.Message.setProto3StringField(this,14,e)},proto.service.GetResponseRequest.GetResponseConfig.prototype.getBrowserData=function(){return r.Message.getFieldWithDefault(this,15,"")},proto.service.GetResponseRequest.GetResponseConfig.prototype.setBrowserData=function(e){return r.Message.setProto3StringField(this,15,e)},proto.service.GetResponseRequest.GetResponseData.oneofGroups_=[[1,2,3]],proto.service.GetResponseRequest.GetResponseData.InputTypeCase={INPUT_TYPE_NOT_SET:0,AUDIO_DATA:1,TEXT_DATA:2,TRIGGER_DATA:3},proto.service.GetResponseRequest.GetResponseData.prototype.getInputTypeCase=function(){return r.Message.computeOneofCase(this,proto.service.GetResponseRequest.GetResponseData.oneofGroups_[0])},r.Message.GENERATE_TO_OBJECT&&(proto.service.GetResponseRequest.GetResponseData.prototype.toObject=function(e){return proto.service.GetResponseRequest.GetResponseData.toObject(e,this)},proto.service.GetResponseRequest.GetResponseData.toObject=function(e,t){var o,i={audioData:t.getAudioData_asB64(),textData:null==(o=r.Message.getField(t,2))?void 0:o,triggerData:(o=t.getTriggerData())&&proto.service.TriggerConfig.toObject(e,o)};return e&&(i.$jspbMessageInstance=t),i}),proto.service.GetResponseRequest.GetResponseData.deserializeBinary=function(e){var t=new r.BinaryReader(e),o=new proto.service.GetResponseRequest.GetResponseData;return proto.service.GetResponseRequest.GetResponseData.deserializeBinaryFromReader(o,t)},proto.service.GetResponseRequest.GetResponseData.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBytes();e.setAudioData(o);break;case 2:o=t.readString();e.setTextData(o);break;case 3:o=new proto.service.TriggerConfig;t.readMessage(o,proto.service.TriggerConfig.deserializeBinaryFromReader),e.setTriggerData(o);break;default:t.skipField()}}return e},proto.service.GetResponseRequest.GetResponseData.prototype.serializeBinary=function(){var e=new r.BinaryWriter;return proto.service.GetResponseRequest.GetResponseData.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.service.GetResponseRequest.GetResponseData.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=r.Message.getField(e,1))&&t.writeBytes(1,o),null!=(o=r.Message.getField(e,2))&&t.writeString(2,o),null!=(o=e.getTriggerData())&&t.writeMessage(3,o,proto.service.TriggerConfig.serializeBinaryToWriter)},proto.service.GetResponseRequest.GetResponseData.prototype.getAudioData=function(){return r.Message.getFieldWithDefault(this,1,"")},proto.service.GetResponseRequest.GetResponseData.prototype.getAudioData_asB64=function(){return r.Message.bytesAsB64(this.getAudioData())},proto.service.GetResponseRequest.GetResponseData.prototype.getAudioData_asU8=function(){return r.Message.bytesAsU8(this.getAudioData())},proto.service.GetResponseRequest.GetResponseData.prototype.setAudioData=function(e){return r.Mes