RecognizeRequest class
Request message for the
google.cloud.speech.v2.Speech.Recognize method. Either
content or uri must be supplied. Supplying both or neither returns
google.rpc.Code.INVALID_ARGUMENT. See content
limits.
- Inheritance
- 
    - Object
- GeneratedMessage
- RecognizeRequest
 
Constructors
- 
          RecognizeRequest({RecognitionConfig? config, String? recognizer, List<int> ? content, String? uri, FieldMask? configMask})
- 
          
            factory
- 
          RecognizeRequest.fromBuffer(List<int> i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
- 
          
            factory
- RecognizeRequest.fromJson(String i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
- 
          
            factory
Properties
- config ↔ RecognitionConfig
- 
  Features and audio metadata to use for the Automatic Speech Recognition.
This field in combination with the
google.cloud.speech.v2.RecognizeRequest.config_maskfield can be used to override parts of thegoogle.cloud.speech.v2.Recognizer.default_recognition_configof the Recognizer resource.getter/setter pair
- configMask ↔ FieldMask
- 
  The list of fields in
google.cloud.speech.v2.RecognizeRequest.configthat override the values in thegoogle.cloud.speech.v2.Recognizer.default_recognition_configof the recognizer during this recognition request. If no mask is provided, all non-default valued fields ingoogle.cloud.speech.v2.RecognizeRequest.configoverride the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (*) is provided,google.cloud.speech.v2.RecognizeRequest.configcompletely overrides and replaces the config in the recognizer for this recognition request.getter/setter pair
- 
  content
  ↔ List<int> 
- 
  The audio data bytes encoded as specified in
google.cloud.speech.v2.RecognitionConfig. As with all bytes fields, proto buffers use a pure binary representation, whereas JSON representations use base64.getter/setter pair
- eventPlugin → EventPlugin?
- 
  Subclasses can override this getter to be notified of changes
to protobuf fields.
  no setterinherited
- hashCode → int
- 
  Calculates a hash code based on the contents of the protobuf.
  no setterinherited
- info_ → BuilderInfo
- 
  
  no setteroverride
- isFrozen → bool
- 
  Returns trueif this message is marked read-only. Otherwisefalse.no setterinherited
- recognizer ↔ String
- 
  Required. The name of the Recognizer to use during recognition. The
expected format is
projects/{project}/locations/{location}/recognizers/{recognizer}. The {recognizer} segment may be set to_to use an empty implicit Recognizer.getter/setter pair
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- unknownFields → UnknownFieldSet
- 
  
  no setterinherited
- uri ↔ String
- 
  URI that points to a file that contains audio data bytes as specified in
google.cloud.speech.v2.RecognitionConfig. The file must not be compressed (for example, gzip). Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format:gs://bucket_name/object_name(other URI formats returngoogle.rpc.Code.INVALID_ARGUMENT). For more information, see Request URIs.getter/setter pair
Methods
- 
  addExtension(Extension extension, Object? value) → void 
- 
  Adds an extension field value to a repeated field.
  inherited
- 
  check() → void 
- 
  
  inherited
- 
  clear() → void 
- 
  Clears all data that was set in this message.
  inherited
- 
  clearAudioSource() → void 
- 
  clearConfig() → void 
- 
  clearConfigMask() → void 
- 
  clearContent() → void 
- 
  clearExtension(Extension extension) → void 
- 
  Clears an extension field and also removes the extension.
  inherited
- 
  clearField(int tagNumber) → void 
- 
  Clears the contents of a given field.
  inherited
- 
  clearRecognizer() → void 
- 
  clearUri() → void 
- 
  clone() → RecognizeRequest 
- 
  Creates a deep copy of the fields in this message.
(The generated code uses mergeFromMessage.)
  override
- 
  copyWith(void updates(RecognizeRequest)) → RecognizeRequest 
- 
  Apply updatesto a copy of this message.override
- 
  createEmptyInstance() → RecognizeRequest 
- 
  Creates an empty instance of the same message type as this.
  override
- 
  createMapField<K, V> (int tagNumber, MapFieldInfo< K, V> fi) → Map<K, V> 
- 
  Creates a Map representing a map field.
  inherited
- 
  createRepeatedField<T> (int tagNumber, FieldInfo< T> fi) → List<T> 
- 
  Creates List implementing a mutable repeated field.
  inherited
- 
  ensureConfig() → RecognitionConfig 
- 
  ensureConfigMask() → FieldMask 
- 
  extensionsAreInitialized() → bool 
- 
  
  inherited
- 
  freeze() → GeneratedMessage 
- 
  Make this message read-only.
  inherited
- 
  getDefaultForField(int tagNumber) → dynamic 
- 
  Returns the default value for the given field.
  inherited
- 
  getExtension(Extension extension) → dynamic 
- 
  Returns the value of extension.inherited
- 
  getField(int tagNumber) → dynamic 
- 
  Returns the value of the field associated with tagNumber, or the default value if it is not set.inherited
- 
  getFieldOrNull(int tagNumber) → dynamic 
- 
  Returns the value of a field, ignoring any defaults.
  inherited
- 
  getTagNumber(String fieldName) → int? 
- 
  
  inherited
- 
  hasConfig() → bool 
- 
  hasConfigMask() → bool 
- 
  hasContent() → bool 
- 
  hasExtension(Extension extension) → bool 
- 
  Returns trueif a value ofextensionis present.inherited
- 
  hasField(int tagNumber) → bool 
- 
  Whether this message has a field associated with tagNumber.inherited
- 
  hasRecognizer() → bool 
- 
  hasRequiredFields() → bool 
- 
  Whether the message has required fields.
  inherited
- 
  hasUri() → bool 
- 
  isInitialized() → bool 
- 
  Whether all required fields in the message and embedded messages are set.
  inherited
- 
  mergeFromBuffer(List< int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
- 
  Merges serialized protocol buffer data into this message.
  inherited
- 
  mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void 
- 
  
  inherited
- 
  mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void 
- 
  Merges field values from data, a JSON object, encoded as described byGeneratedMessage.writeToJson.inherited
- 
  mergeFromJsonMap(Map< String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
- 
  Merges field values from a JSON object represented as a Dart map.
  inherited
- 
  mergeFromMessage(GeneratedMessage other) → void 
- 
  Merges the contents of the otherinto this message.inherited
- 
  mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void 
- 
  Merges field values from json, a JSON object using proto3 encoding.inherited
- 
  mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void 
- 
  
  inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  setExtension(Extension extension, Object value) → void 
- 
  Sets the value of a non-repeated extension field to value.inherited
- 
  setField(int tagNumber, Object value) → void 
- 
  Sets the value of a field by its tagNumber.inherited
- 
  toBuilder() → GeneratedMessage 
- 
  Creates a writable, shallow copy of this message.
  inherited
- 
  toDebugString() → String 
- 
  Returns a String representation of this message.
  inherited
- 
  toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) → Object? 
- 
  Returns an Object representing Proto3 JSON serialization of this.inherited
- 
  toString() → String 
- 
  Returns a String representation of this message.
  inherited
- 
  whichAudioSource() → RecognizeRequest_AudioSource 
- 
  writeToBuffer() → Uint8List 
- 
  
  inherited
- 
  writeToCodedBufferWriter(CodedBufferWriter output) → void 
- 
  
  inherited
- 
  writeToJson() → String 
- 
  Returns a JSON string that encodes this message.
  inherited
- 
  writeToJsonMap() → Map< String, dynamic> 
- 
  Returns the JSON encoding of this message as a Dart Map.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  create() → RecognizeRequest 
- 
  createRepeated() → PbList< RecognizeRequest> 
- 
  getDefault() → RecognizeRequest