Topic class Null safety

A topic resource.


Topic({String? kmsKeyName, Map<String, String>? labels, String? messageRetentionDuration, MessageStoragePolicy? messageStoragePolicy, String? name, bool? satisfiesPzs, SchemaSettings? schemaSettings})
Topic.fromJson(Map json_)


hashCode int
The hash code for this object.
kmsKeyName String?
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published on this topic.
read / write
labels Map<String, String>?
See Creating and managing labels.
read / write
messageRetentionDuration String?
Indicates the minimum duration to retain a message after it is published to the topic.
read / write
messageStoragePolicy MessageStoragePolicy?
Policy constraining the set of Google Cloud Platform regions where messages published to the topic may be stored.
read / write
name String?
The name of the topic.
read / write
runtimeType Type
A representation of the runtime type of the object.
satisfiesPzs bool?
Reserved for future use.
read / write
schemaSettings SchemaSettings?
Settings for validating messages published against a schema.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.