ServiceAccount class
Constructors
-
ServiceAccount.fromFile(File file)
-
Creates a ServiceAccount using a service-account.json file.
factory
-
ServiceAccount.fromString(String json)
-
Creates a service account using a passed Json string.
This Json string must contain valid Json, otherwise no
service account can be created.
factory
Properties
-
callOptions
→ CallOptions
-
Returns the
CallOptions
of the created service account.
These can then be used to initialize a new SpeechClient.
no setteroverride
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
projectId
→ String?
-
Returns the current project id of the service account.
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited