# Package @google-cloud/pubsub (4.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.8.0 (latest)](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/overview)
- [4.4.0](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/4.4.0/overview)
- [4.3.3](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/4.3.3/overview)
- [4.1.1](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/4.1.1/overview)
- [4.0.7](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/4.0.7/overview)
- [3.7.5](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/3.7.5/overview)
- [3.2.1](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/3.2.1/overview)
- [3.1.1](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/3.1.1/overview)
- [3.0.3](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/3.0.3/overview)
- [2.18.3](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/2.18.3/overview)
- [2.17.0](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/2.17.0/overview)
- [2.16.6](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/2.16.6/overview)
- [2.13.0](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/2.13.0/overview)

## Classes

### [AckError](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/ackerror)

Thrown when an error is detected in an ack/nack/modack call, when exactly-once delivery is enabled on the subscription. This will only be thrown for actual errors that can't be retried.

### [DebugMessage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/debugmessage)

Represents a debug message the user might want to print out for logging while debugging or whatnot. These will always come by way of the 'error' channel on streams or other event emitters. It's completely fine to ignore them, as some will just be verbose logging info, but they may help figure out what's going wrong. Support may also ask you to catch these channels, which you can do like so:

    subscription.on('debug', msg => console.log(msg.message));

These values are _not_ guaranteed to remain stable, even within a major version, so don't depend on them for your program logic. Debug outputs may be added or removed at any time, without warning.

### [Duration](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/duration)

Duration class with an interface similar to the tc39 Temporal proposal. Since it's not fully finalized, and polyfills have inconsistent compatibility, for now this shim class will be used to set durations in Pub/Sub.

This class will remain here for at least the next major version, eventually to be replaced by the tc39 Temporal built-in.

<https://tc39.es/proposal-temporal/docs/duration.html>

### [IAM](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/iam)

\[IAM (Identity and Access Management)\](https://cloud.google.com/pubsub/access_control) allows you to set permissions on individual resources and offers a wider range of roles: editor, owner, publisher, subscriber, and viewer. This gives you greater flexibility and allows you to set more fine-grained access control.

For example: \* Grant access on a per-topic or per-subscription basis, rather than for the whole Cloud project. \* Grant access with limited capabilities, such as to only publish messages to a topic, or to only to consume messages from a subscription, but not to delete the topic or subscription.

\*The IAM access control features described in this document are Beta, including the API methods to get and set IAM policies, and to test IAM permissions. Cloud Pub/Sub's use of IAM features is not covered by any SLA or deprecation policy, and may be subject to backward-incompatible changes.\*

### [Message](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/message)

Message objects provide a simple interface for users to get message data and acknowledge the message.

### [protos.google.api.ClientLibrarySettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.clientlibrarysettings)

Represents a ClientLibrarySettings.

### [protos.google.api.CommonLanguageSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.commonlanguagesettings)

Represents a CommonLanguageSettings.

### [protos.google.api.CppSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.cppsettings)

Represents a CppSettings.

### [protos.google.api.CustomHttpPattern](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.customhttppattern)

Represents a CustomHttpPattern.

### [protos.google.api.DotnetSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.dotnetsettings)

Represents a DotnetSettings.

### [protos.google.api.GoSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.gosettings)

Represents a GoSettings.

### [protos.google.api.Http](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.http)

Represents a Http.

### [protos.google.api.HttpRule](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.httprule)

Represents a HttpRule.

### [protos.google.api.JavaSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.javasettings)

Represents a JavaSettings.

### [protos.google.api.MethodSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.methodsettings-class)

Represents a MethodSettings.

### [protos.google.api.MethodSettings.LongRunning](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.methodsettings.longrunning)

Represents a LongRunning.

### [protos.google.api.NodeSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.nodesettings)

Represents a NodeSettings.

### [protos.google.api.PhpSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.phpsettings)

Represents a PhpSettings.

### [protos.google.api.Publishing](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.publishing)

Represents a Publishing.

### [protos.google.api.PythonSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.pythonsettings)

Represents a PythonSettings.

### [protos.google.api.ResourceDescriptor](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.resourcedescriptor-class)

Represents a ResourceDescriptor.

### [protos.google.api.ResourceReference](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.resourcereference)

Represents a ResourceReference.

### [protos.google.api.RubySettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.rubysettings)

Represents a RubySettings.

### [protos.google.protobuf.DescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.descriptorproto-class)

Represents a DescriptorProto.

### [protos.google.protobuf.DescriptorProto.ExtensionRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.descriptorproto.extensionrange)

Represents an ExtensionRange.

### [protos.google.protobuf.DescriptorProto.ReservedRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.descriptorproto.reservedrange)

Represents a ReservedRange.

### [protos.google.protobuf.Duration](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.duration)

Represents a Duration.

### [protos.google.protobuf.Empty](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.empty)

Represents an Empty.

### [protos.google.protobuf.EnumDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumdescriptorproto-class)

Represents an EnumDescriptorProto.

### [protos.google.protobuf.EnumDescriptorProto.EnumReservedRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumdescriptorproto.enumreservedrange)

Represents an EnumReservedRange.

### [protos.google.protobuf.EnumOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumoptions)

Represents an EnumOptions.

### [protos.google.protobuf.EnumValueDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumvaluedescriptorproto)

Represents an EnumValueDescriptorProto.

### [protos.google.protobuf.EnumValueOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumvalueoptions)

Represents an EnumValueOptions.

### [protos.google.protobuf.ExtensionRangeOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.extensionrangeoptions-class)

Represents an ExtensionRangeOptions.

### [protos.google.protobuf.ExtensionRangeOptions.Declaration](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.extensionrangeoptions.declaration)

Represents a Declaration.

### [protos.google.protobuf.FeatureSet](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset-class)

Represents a FeatureSet.

### [protos.google.protobuf.FeatureSetDefaults](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featuresetdefaults-class)

Represents a FeatureSetDefaults.

### [protos.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featuresetdefaults.featureseteditiondefault)

Represents a FeatureSetEditionDefault.

### [protos.google.protobuf.FieldDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fielddescriptorproto-class)

Represents a FieldDescriptorProto.

### [protos.google.protobuf.FieldMask](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldmask)

Represents a FieldMask.

### [protos.google.protobuf.FieldOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions-class)

Represents a FieldOptions.

### [protos.google.protobuf.FieldOptions.EditionDefault](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.editiondefault)

Represents an EditionDefault.

### [protos.google.protobuf.FileDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.filedescriptorproto)

Represents a FileDescriptorProto.

### [protos.google.protobuf.FileDescriptorSet](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.filedescriptorset)

Represents a FileDescriptorSet.

### [protos.google.protobuf.FileOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fileoptions-class)

Represents a FileOptions.

### [protos.google.protobuf.GeneratedCodeInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.generatedcodeinfo-class)

Represents a GeneratedCodeInfo.

### [protos.google.protobuf.GeneratedCodeInfo.Annotation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.generatedcodeinfo.annotation-class)

Represents an Annotation.

### [protos.google.protobuf.MessageOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.messageoptions)

Represents a MessageOptions.

### [protos.google.protobuf.MethodDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.methoddescriptorproto)

Represents a MethodDescriptorProto.

### [protos.google.protobuf.MethodOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.methodoptions-class)

Represents a MethodOptions.

### [protos.google.protobuf.OneofDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.oneofdescriptorproto)

Represents an OneofDescriptorProto.

### [protos.google.protobuf.OneofOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.oneofoptions)

Represents an OneofOptions.

### [protos.google.protobuf.ServiceDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.servicedescriptorproto)

Represents a ServiceDescriptorProto.

### [protos.google.protobuf.ServiceOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.serviceoptions)

Represents a ServiceOptions.

### [protos.google.protobuf.SourceCodeInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.sourcecodeinfo-class)

Represents a SourceCodeInfo.

### [protos.google.protobuf.SourceCodeInfo.Location](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.sourcecodeinfo.location)

Represents a Location.

### [protos.google.protobuf.Timestamp](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.timestamp)

Represents a Timestamp.

### [protos.google.protobuf.UninterpretedOption](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.uninterpretedoption-class)

Represents an UninterpretedOption.

### [protos.google.protobuf.UninterpretedOption.NamePart](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.uninterpretedoption.namepart)

Represents a NamePart.

### [protos.google.pubsub.v1.AcknowledgeRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.acknowledgerequest)

Represents an AcknowledgeRequest.

### [protos.google.pubsub.v1.BigQueryConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.bigqueryconfig-class)

Represents a BigQueryConfig.

### [protos.google.pubsub.v1.CloudStorageConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig-class)

Represents a CloudStorageConfig.

### [protos.google.pubsub.v1.CloudStorageConfig.AvroConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig.avroconfig)

Represents an AvroConfig.

### [protos.google.pubsub.v1.CloudStorageConfig.TextConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig.textconfig)

Represents a TextConfig.

### [protos.google.pubsub.v1.CommitSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.commitschemarequest)

Represents a CommitSchemaRequest.

### [protos.google.pubsub.v1.CreateSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.createschemarequest)

Represents a CreateSchemaRequest.

### [protos.google.pubsub.v1.CreateSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.createsnapshotrequest)

Represents a CreateSnapshotRequest.

### [protos.google.pubsub.v1.DeadLetterPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deadletterpolicy)

Represents a DeadLetterPolicy.

### [protos.google.pubsub.v1.DeleteSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deleteschemarequest)

Represents a DeleteSchemaRequest.

### [protos.google.pubsub.v1.DeleteSchemaRevisionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deleteschemarevisionrequest)

Represents a DeleteSchemaRevisionRequest.

### [protos.google.pubsub.v1.DeleteSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deletesnapshotrequest)

Represents a DeleteSnapshotRequest.

### [protos.google.pubsub.v1.DeleteSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deletesubscriptionrequest)

Represents a DeleteSubscriptionRequest.

### [protos.google.pubsub.v1.DeleteTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.deletetopicrequest)

Represents a DeleteTopicRequest.

### [protos.google.pubsub.v1.DetachSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.detachsubscriptionrequest)

Represents a DetachSubscriptionRequest.

### [protos.google.pubsub.v1.DetachSubscriptionResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.detachsubscriptionresponse)

Represents a DetachSubscriptionResponse.

### [protos.google.pubsub.v1.ExpirationPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.expirationpolicy)

Represents an ExpirationPolicy.

### [protos.google.pubsub.v1.GetSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.getschemarequest)

Represents a GetSchemaRequest.

### [protos.google.pubsub.v1.GetSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.getsnapshotrequest)

Represents a GetSnapshotRequest.

### [protos.google.pubsub.v1.GetSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.getsubscriptionrequest)

Represents a GetSubscriptionRequest.

### [protos.google.pubsub.v1.GetTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.gettopicrequest)

Represents a GetTopicRequest.

### [protos.google.pubsub.v1.IngestionDataSourceSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings-class)

Represents an IngestionDataSourceSettings.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.awskinesis-class)

Represents an AwsKinesis.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage-class)

Represents a CloudStorage.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.avroformat)

Represents an AvroFormat.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.pubsubavroformat)

Represents a PubSubAvroFormat.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.textformat)

Represents a TextFormat.

### [protos.google.pubsub.v1.ListSchemaRevisionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listschemarevisionsrequest)

Represents a ListSchemaRevisionsRequest.

### [protos.google.pubsub.v1.ListSchemaRevisionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listschemarevisionsresponse)

Represents a ListSchemaRevisionsResponse.

### [protos.google.pubsub.v1.ListSchemasRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listschemasrequest)

Represents a ListSchemasRequest.

### [protos.google.pubsub.v1.ListSchemasResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listschemasresponse)

Represents a ListSchemasResponse.

### [protos.google.pubsub.v1.ListSnapshotsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listsnapshotsrequest)

Represents a ListSnapshotsRequest.

### [protos.google.pubsub.v1.ListSnapshotsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listsnapshotsresponse)

Represents a ListSnapshotsResponse.

### [protos.google.pubsub.v1.ListSubscriptionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listsubscriptionsrequest)

Represents a ListSubscriptionsRequest.

### [protos.google.pubsub.v1.ListSubscriptionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listsubscriptionsresponse)

Represents a ListSubscriptionsResponse.

### [protos.google.pubsub.v1.ListTopicSnapshotsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsnapshotsrequest)

Represents a ListTopicSnapshotsRequest.

### [protos.google.pubsub.v1.ListTopicSnapshotsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsnapshotsresponse)

Represents a ListTopicSnapshotsResponse.

### [protos.google.pubsub.v1.ListTopicsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsrequest)

Represents a ListTopicsRequest.

### [protos.google.pubsub.v1.ListTopicsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsresponse)

Represents a ListTopicsResponse.

### [protos.google.pubsub.v1.ListTopicSubscriptionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsubscriptionsrequest)

Represents a ListTopicSubscriptionsRequest.

### [protos.google.pubsub.v1.ListTopicSubscriptionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.listtopicsubscriptionsresponse)

Represents a ListTopicSubscriptionsResponse.

### [protos.google.pubsub.v1.MessageStoragePolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.messagestoragepolicy)

Represents a MessageStoragePolicy.

### [protos.google.pubsub.v1.ModifyAckDeadlineRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.modifyackdeadlinerequest)

Represents a ModifyAckDeadlineRequest.

### [protos.google.pubsub.v1.ModifyPushConfigRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.modifypushconfigrequest)

Represents a ModifyPushConfigRequest.

### [protos.google.pubsub.v1.PlatformLogsSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.platformlogssettings-class)

Represents a PlatformLogsSettings.

### [protos.google.pubsub.v1.Publisher](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.publisher-class)

Represents a Publisher

### [protos.google.pubsub.v1.PublishRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.publishrequest)

Represents a PublishRequest.

### [protos.google.pubsub.v1.PublishResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.publishresponse)

Represents a PublishResponse.

### [protos.google.pubsub.v1.PubsubMessage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pubsubmessage)

Represents a PubsubMessage.

### [protos.google.pubsub.v1.PullRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pullrequest)

Represents a PullRequest.

### [protos.google.pubsub.v1.PullResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pullresponse)

Represents a PullResponse.

### [protos.google.pubsub.v1.PushConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig-class)

Represents a PushConfig.

### [protos.google.pubsub.v1.PushConfig.NoWrapper](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.nowrapper)

Represents a NoWrapper.

### [protos.google.pubsub.v1.PushConfig.OidcToken](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.oidctoken)

Represents an OidcToken.

### [protos.google.pubsub.v1.PushConfig.PubsubWrapper](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.pubsubwrapper)

Represents a PubsubWrapper.

### [protos.google.pubsub.v1.ReceivedMessage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.receivedmessage)

Represents a ReceivedMessage.

### [protos.google.pubsub.v1.RetryPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.retrypolicy)

Represents a RetryPolicy.

### [protos.google.pubsub.v1.RollbackSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.rollbackschemarequest)

Represents a RollbackSchemaRequest.

### [protos.google.pubsub.v1.Schema](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.schema-class)

Represents a Schema.

### [protos.google.pubsub.v1.SchemaService](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.schemaservice-class)

Represents a SchemaService

### [protos.google.pubsub.v1.SchemaSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.schemasettings)

Represents a SchemaSettings.

### [protos.google.pubsub.v1.SeekRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.seekrequest)

Represents a SeekRequest.

### [protos.google.pubsub.v1.SeekResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.seekresponse)

Represents a SeekResponse.

### [protos.google.pubsub.v1.Snapshot](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.snapshot)

Represents a Snapshot.

### [protos.google.pubsub.v1.StreamingPullRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullrequest)

Represents a StreamingPullRequest.

### [protos.google.pubsub.v1.StreamingPullResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse-class)

Represents a StreamingPullResponse.

### [protos.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.acknowledgeconfirmation)

Represents an AcknowledgeConfirmation.

### [protos.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.modifyackdeadlineconfirmation)

Represents a ModifyAckDeadlineConfirmation.

### [protos.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.subscriptionproperties)

Represents a SubscriptionProperties.

### [protos.google.pubsub.v1.Subscriber](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.subscriber-class)

Represents a Subscriber

### [protos.google.pubsub.v1.Subscription](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.subscription-class)

Represents a Subscription.

### [protos.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.subscription.analyticshubsubscriptioninfo)

Represents an AnalyticsHubSubscriptionInfo.

### [protos.google.pubsub.v1.Topic](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.topic-class)

Represents a Topic.

### [protos.google.pubsub.v1.UpdateSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.updatesnapshotrequest)

Represents an UpdateSnapshotRequest.

### [protos.google.pubsub.v1.UpdateSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.updatesubscriptionrequest)

Represents an UpdateSubscriptionRequest.

### [protos.google.pubsub.v1.UpdateTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.updatetopicrequest)

Represents an UpdateTopicRequest.

### [protos.google.pubsub.v1.ValidateMessageRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.validatemessagerequest)

Represents a ValidateMessageRequest.

### [protos.google.pubsub.v1.ValidateMessageResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.validatemessageresponse)

Represents a ValidateMessageResponse.

### [protos.google.pubsub.v1.ValidateSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.validateschemarequest)

Represents a ValidateSchemaRequest.

### [protos.google.pubsub.v1.ValidateSchemaResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.validateschemaresponse)

Represents a ValidateSchemaResponse.

### [PublishError](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/publisherror)

Exception to be thrown during failed ordered publish.

Error

### [PubSub](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/pubsub)

\[Cloud Pub/Sub\](<https://developers.google.com/pubsub/overview>) is a reliable, many-to-many, asynchronous messaging service from Cloud Platform.

### [Schema](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/schema)

A Schema object allows you to interact with a Cloud Pub/Sub schema.

This should only be instantiated by the PubSub class. To obtain an instance for end user usage, call pubsub.schema().

### [Snapshot](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/snapshot)

A Snapshot object will give you access to your Cloud Pub/Sub snapshot.

Snapshots are sometimes retrieved when using various methods:

*** ** * ** ***

Snapshots may be created with:

- You can use snapshots to seek a subscription to a specific point in time.

-

### [StatusError](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/statuserror)

Error wrapper for gRPC status objects.

### [Subscription](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/subscription-class)

A Subscription object will give you access to your Cloud Pub/Sub subscription.

Subscriptions are sometimes retrieved when using various methods:

-
  - 

Subscription objects may be created directly with:

-
  - 

All Subscription objects are instances of an \[EventEmitter\](<http://nodejs.org/api/events.html>). The subscription will pull for messages automatically as long as there is at least one listener assigned for the `message` event. Available events:

Upon receipt of a message: on(event: 'message', listener: (message: [Message](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/message)) =\> void): this;

Upon receipt of an error: on(event: 'error', listener: (error: Error) =\> void): this;

Upon receipt of a (non-fatal) debug warning: on(event: 'debug', listener: (msg: DebugMessage) =\> void): this;

Upon the closing of the subscriber: on(event: 'close', listener: Function): this;

By default Subscription objects allow you to process 1000 messages at the same time. You can fine tune this value by adjusting the `options.flowControl.maxMessages` option.

If your subscription is seeing more re-deliveries than preferable, you might try increasing your `options.ackDeadline` value or decreasing the `options.streamingOptions.maxStreams` value.

Subscription objects handle ack management, by automatically extending the ack deadline while the message is being processed, to then issue the ack or nack of such message when the processing is done. \*\*Note:\*\* message redelivery is still possible.

By default each [PubSub](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/pubsub) instance can handle 100 open streams, with default options this translates to less than 20 Subscriptions per PubSub instance. If you wish to create more Subscriptions than that, you can either create multiple PubSub instances or lower the `options.streamingOptions.maxStreams` value on each Subscription object.

### [Topic](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/topic)

A Topic object allows you to interact with a Cloud Pub/Sub topic.

### [v1.PublisherClient](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/v1.publisherclient)

The service that an application uses to manipulate topics, and to send messages to a topic. v1

### [v1.SchemaServiceClient](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/v1.schemaserviceclient)

Service for doing schema-related operations. v1

### [v1.SubscriberClient](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/v1.subscriberclient)

The service that an application uses to manipulate subscriptions and to consume messages from a subscription via the `Pull` method or by establishing a bi-directional stream using the `StreamingPull` method. v1

## Interfaces

### [BatchPublishOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/batchpublishoptions)

### [ClientConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/clientconfig)

### [DurationLike](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/durationlike)

Simplified interface analogous to the tc39 Temporal.Duration parameter to from(). This doesn't support the full gamut (years, days).

### [FlowControlOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/flowcontroloptions)

FlowControlOptions {number} \[maxOutstandingMessages\] The maximum number of messages to buffer before publisher flow control kicks in. {number} \[maxOutstandingBytes\] The maximum number of bytes to buffer before publisher flow control kicks in.

### [IamPermissionsMap](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/iampermissionsmap)

Shows which IAM permissions is allowed. The key to this object are the IAM permissions (string) and the values are booleans, true if permissions are granted to the corresponding key.

### [PageOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/pageoptions)

### [protos.google.api.IClientLibrarySettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.iclientlibrarysettings)

Properties of a ClientLibrarySettings.

### [protos.google.api.ICommonLanguageSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.icommonlanguagesettings)

Properties of a CommonLanguageSettings.

### [protos.google.api.ICppSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.icppsettings)

Properties of a CppSettings.

### [protos.google.api.ICustomHttpPattern](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.icustomhttppattern)

Properties of a CustomHttpPattern.

### [protos.google.api.IDotnetSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.idotnetsettings)

Properties of a DotnetSettings.

### [protos.google.api.IGoSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.igosettings)

Properties of a GoSettings.

### [protos.google.api.IHttp](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.ihttp)

Properties of a Http.

### [protos.google.api.IHttpRule](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.ihttprule)

Properties of a HttpRule.

### [protos.google.api.IJavaSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.ijavasettings)

Properties of a JavaSettings.

### [protos.google.api.IMethodSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.imethodsettings)

Properties of a MethodSettings.

### [protos.google.api.INodeSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.inodesettings)

Properties of a NodeSettings.

### [protos.google.api.IPhpSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.iphpsettings)

Properties of a PhpSettings.

### [protos.google.api.IPublishing](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.ipublishing)

Properties of a Publishing.

### [protos.google.api.IPythonSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.ipythonsettings)

Properties of a PythonSettings.

### [protos.google.api.IResourceDescriptor](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.iresourcedescriptor)

Properties of a ResourceDescriptor.

### [protos.google.api.IResourceReference](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.iresourcereference)

Properties of a ResourceReference.

### [protos.google.api.IRubySettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.irubysettings)

Properties of a RubySettings.

### [protos.google.api.MethodSettings.ILongRunning](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.methodsettings.ilongrunning)

Properties of a LongRunning.

### [protos.google.protobuf.DescriptorProto.IExtensionRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.descriptorproto.iextensionrange)

Properties of an ExtensionRange.

### [protos.google.protobuf.DescriptorProto.IReservedRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.descriptorproto.ireservedrange)

Properties of a ReservedRange.

### [protos.google.protobuf.EnumDescriptorProto.IEnumReservedRange](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.enumdescriptorproto.ienumreservedrange)

Properties of an EnumReservedRange.

### [protos.google.protobuf.ExtensionRangeOptions.IDeclaration](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.extensionrangeoptions.ideclaration)

Properties of a Declaration.

### [protos.google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featuresetdefaults.ifeatureseteditiondefault)

Properties of a FeatureSetEditionDefault.

### [protos.google.protobuf.FieldOptions.IEditionDefault](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.ieditiondefault)

Properties of an EditionDefault.

### [protos.google.protobuf.GeneratedCodeInfo.IAnnotation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.generatedcodeinfo.iannotation)

Properties of an Annotation.

### [protos.google.protobuf.IDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.idescriptorproto)

Properties of a DescriptorProto.

### [protos.google.protobuf.IDuration](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iduration)

Properties of a Duration.

### [protos.google.protobuf.IEmpty](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iempty)

Properties of an Empty.

### [protos.google.protobuf.IEnumDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ienumdescriptorproto)

Properties of an EnumDescriptorProto.

### [protos.google.protobuf.IEnumOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ienumoptions)

Properties of an EnumOptions.

### [protos.google.protobuf.IEnumValueDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ienumvaluedescriptorproto)

Properties of an EnumValueDescriptorProto.

### [protos.google.protobuf.IEnumValueOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ienumvalueoptions)

Properties of an EnumValueOptions.

### [protos.google.protobuf.IExtensionRangeOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iextensionrangeoptions)

Properties of an ExtensionRangeOptions.

### [protos.google.protobuf.IFeatureSet](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifeatureset)

Properties of a FeatureSet.

### [protos.google.protobuf.IFeatureSetDefaults](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifeaturesetdefaults)

Properties of a FeatureSetDefaults.

### [protos.google.protobuf.IFieldDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifielddescriptorproto)

Properties of a FieldDescriptorProto.

### [protos.google.protobuf.IFieldMask](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifieldmask)

Properties of a FieldMask.

### [protos.google.protobuf.IFieldOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifieldoptions)

Properties of a FieldOptions.

### [protos.google.protobuf.IFileDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifiledescriptorproto)

Properties of a FileDescriptorProto.

### [protos.google.protobuf.IFileDescriptorSet](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifiledescriptorset)

Properties of a FileDescriptorSet.

### [protos.google.protobuf.IFileOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ifileoptions)

Properties of a FileOptions.

### [protos.google.protobuf.IGeneratedCodeInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.igeneratedcodeinfo)

Properties of a GeneratedCodeInfo.

### [protos.google.protobuf.IMessageOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.imessageoptions)

Properties of a MessageOptions.

### [protos.google.protobuf.IMethodDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.imethoddescriptorproto)

Properties of a MethodDescriptorProto.

### [protos.google.protobuf.IMethodOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.imethodoptions)

Properties of a MethodOptions.

### [protos.google.protobuf.IOneofDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ioneofdescriptorproto)

Properties of an OneofDescriptorProto.

### [protos.google.protobuf.IOneofOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.ioneofoptions)

Properties of an OneofOptions.

### [protos.google.protobuf.IServiceDescriptorProto](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iservicedescriptorproto)

Properties of a ServiceDescriptorProto.

### [protos.google.protobuf.IServiceOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iserviceoptions)

Properties of a ServiceOptions.

### [protos.google.protobuf.ISourceCodeInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.isourcecodeinfo)

Properties of a SourceCodeInfo.

### [protos.google.protobuf.ITimestamp](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.itimestamp)

Properties of a Timestamp.

### [protos.google.protobuf.IUninterpretedOption](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.iuninterpretedoption)

Properties of an UninterpretedOption.

### [protos.google.protobuf.SourceCodeInfo.ILocation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.sourcecodeinfo.ilocation)

Properties of a Location.

### [protos.google.protobuf.UninterpretedOption.INamePart](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.uninterpretedoption.inamepart)

Properties of a NamePart.

### [protos.google.pubsub.v1.CloudStorageConfig.IAvroConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig.iavroconfig)

Properties of an AvroConfig.

### [protos.google.pubsub.v1.CloudStorageConfig.ITextConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig.itextconfig)

Properties of a TextConfig.

### [protos.google.pubsub.v1.IAcknowledgeRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iacknowledgerequest)

Properties of an AcknowledgeRequest.

### [protos.google.pubsub.v1.IBigQueryConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ibigqueryconfig)

Properties of a BigQueryConfig.

### [protos.google.pubsub.v1.ICloudStorageConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.icloudstorageconfig)

Properties of a CloudStorageConfig.

### [protos.google.pubsub.v1.ICommitSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.icommitschemarequest)

Properties of a CommitSchemaRequest.

### [protos.google.pubsub.v1.ICreateSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.icreateschemarequest)

Properties of a CreateSchemaRequest.

### [protos.google.pubsub.v1.ICreateSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.icreatesnapshotrequest)

Properties of a CreateSnapshotRequest.

### [protos.google.pubsub.v1.IDeadLetterPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideadletterpolicy)

Properties of a DeadLetterPolicy.

### [protos.google.pubsub.v1.IDeleteSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideleteschemarequest)

Properties of a DeleteSchemaRequest.

### [protos.google.pubsub.v1.IDeleteSchemaRevisionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideleteschemarevisionrequest)

Properties of a DeleteSchemaRevisionRequest.

### [protos.google.pubsub.v1.IDeleteSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideletesnapshotrequest)

Properties of a DeleteSnapshotRequest.

### [protos.google.pubsub.v1.IDeleteSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideletesubscriptionrequest)

Properties of a DeleteSubscriptionRequest.

### [protos.google.pubsub.v1.IDeleteTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ideletetopicrequest)

Properties of a DeleteTopicRequest.

### [protos.google.pubsub.v1.IDetachSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.idetachsubscriptionrequest)

Properties of a DetachSubscriptionRequest.

### [protos.google.pubsub.v1.IDetachSubscriptionResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.idetachsubscriptionresponse)

Properties of a DetachSubscriptionResponse.

### [protos.google.pubsub.v1.IExpirationPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iexpirationpolicy)

Properties of an ExpirationPolicy.

### [protos.google.pubsub.v1.IGetSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.igetschemarequest)

Properties of a GetSchemaRequest.

### [protos.google.pubsub.v1.IGetSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.igetsnapshotrequest)

Properties of a GetSnapshotRequest.

### [protos.google.pubsub.v1.IGetSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.igetsubscriptionrequest)

Properties of a GetSubscriptionRequest.

### [protos.google.pubsub.v1.IGetTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.igettopicrequest)

Properties of a GetTopicRequest.

### [protos.google.pubsub.v1.IIngestionDataSourceSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iingestiondatasourcesettings)

Properties of an IngestionDataSourceSettings.

### [protos.google.pubsub.v1.IListSchemaRevisionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistschemarevisionsrequest)

Properties of a ListSchemaRevisionsRequest.

### [protos.google.pubsub.v1.IListSchemaRevisionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistschemarevisionsresponse)

Properties of a ListSchemaRevisionsResponse.

### [protos.google.pubsub.v1.IListSchemasRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistschemasrequest)

Properties of a ListSchemasRequest.

### [protos.google.pubsub.v1.IListSchemasResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistschemasresponse)

Properties of a ListSchemasResponse.

### [protos.google.pubsub.v1.IListSnapshotsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistsnapshotsrequest)

Properties of a ListSnapshotsRequest.

### [protos.google.pubsub.v1.IListSnapshotsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistsnapshotsresponse)

Properties of a ListSnapshotsResponse.

### [protos.google.pubsub.v1.IListSubscriptionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistsubscriptionsrequest)

Properties of a ListSubscriptionsRequest.

### [protos.google.pubsub.v1.IListSubscriptionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilistsubscriptionsresponse)

Properties of a ListSubscriptionsResponse.

### [protos.google.pubsub.v1.IListTopicSnapshotsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsnapshotsrequest)

Properties of a ListTopicSnapshotsRequest.

### [protos.google.pubsub.v1.IListTopicSnapshotsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsnapshotsresponse)

Properties of a ListTopicSnapshotsResponse.

### [protos.google.pubsub.v1.IListTopicsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsrequest)

Properties of a ListTopicsRequest.

### [protos.google.pubsub.v1.IListTopicsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsresponse)

Properties of a ListTopicsResponse.

### [protos.google.pubsub.v1.IListTopicSubscriptionsRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsubscriptionsrequest)

Properties of a ListTopicSubscriptionsRequest.

### [protos.google.pubsub.v1.IListTopicSubscriptionsResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ilisttopicsubscriptionsresponse)

Properties of a ListTopicSubscriptionsResponse.

### [protos.google.pubsub.v1.IMessageStoragePolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.imessagestoragepolicy)

Properties of a MessageStoragePolicy.

### [protos.google.pubsub.v1.IModifyAckDeadlineRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.imodifyackdeadlinerequest)

Properties of a ModifyAckDeadlineRequest.

### [protos.google.pubsub.v1.IModifyPushConfigRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.imodifypushconfigrequest)

Properties of a ModifyPushConfigRequest.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.iavroformat)

Properties of an AvroFormat.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.ipubsubavroformat)

Properties of a PubSubAvroFormat.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.itextformat)

Properties of a TextFormat.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.iawskinesis)

Properties of an AwsKinesis.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.icloudstorage)

Properties of a CloudStorage.

### [protos.google.pubsub.v1.IPlatformLogsSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iplatformlogssettings)

Properties of a PlatformLogsSettings.

### [protos.google.pubsub.v1.IPublishRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipublishrequest)

Properties of a PublishRequest.

### [protos.google.pubsub.v1.IPublishResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipublishresponse)

Properties of a PublishResponse.

### [protos.google.pubsub.v1.IPubsubMessage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipubsubmessage)

Properties of a PubsubMessage.

### [protos.google.pubsub.v1.IPullRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipullrequest)

Properties of a PullRequest.

### [protos.google.pubsub.v1.IPullResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipullresponse)

Properties of a PullResponse.

### [protos.google.pubsub.v1.IPushConfig](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ipushconfig)

Properties of a PushConfig.

### [protos.google.pubsub.v1.IReceivedMessage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ireceivedmessage)

Properties of a ReceivedMessage.

### [protos.google.pubsub.v1.IRetryPolicy](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iretrypolicy)

Properties of a RetryPolicy.

### [protos.google.pubsub.v1.IRollbackSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.irollbackschemarequest)

Properties of a RollbackSchemaRequest.

### [protos.google.pubsub.v1.ISchema](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ischema)

Properties of a Schema.

### [protos.google.pubsub.v1.ISchemaSettings](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ischemasettings)

Properties of a SchemaSettings.

### [protos.google.pubsub.v1.ISeekRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iseekrequest)

Properties of a SeekRequest.

### [protos.google.pubsub.v1.ISeekResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iseekresponse)

Properties of a SeekResponse.

### [protos.google.pubsub.v1.ISnapshot](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.isnapshot)

Properties of a Snapshot.

### [protos.google.pubsub.v1.IStreamingPullRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.istreamingpullrequest)

Properties of a StreamingPullRequest.

### [protos.google.pubsub.v1.IStreamingPullResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.istreamingpullresponse)

Properties of a StreamingPullResponse.

### [protos.google.pubsub.v1.ISubscription](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.isubscription)

Properties of a Subscription.

### [protos.google.pubsub.v1.ITopic](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.itopic)

Properties of a Topic.

### [protos.google.pubsub.v1.IUpdateSnapshotRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iupdatesnapshotrequest)

Properties of an UpdateSnapshotRequest.

### [protos.google.pubsub.v1.IUpdateSubscriptionRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iupdatesubscriptionrequest)

Properties of an UpdateSubscriptionRequest.

### [protos.google.pubsub.v1.IUpdateTopicRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.iupdatetopicrequest)

Properties of an UpdateTopicRequest.

### [protos.google.pubsub.v1.IValidateMessageRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ivalidatemessagerequest)

Properties of a ValidateMessageRequest.

### [protos.google.pubsub.v1.IValidateMessageResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ivalidatemessageresponse)

Properties of a ValidateMessageResponse.

### [protos.google.pubsub.v1.IValidateSchemaRequest](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ivalidateschemarequest)

Properties of a ValidateSchemaRequest.

### [protos.google.pubsub.v1.IValidateSchemaResponse](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ivalidateschemaresponse)

Properties of a ValidateSchemaResponse.

### [protos.google.pubsub.v1.PushConfig.INoWrapper](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.inowrapper)

Properties of a NoWrapper.

### [protos.google.pubsub.v1.PushConfig.IOidcToken](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.ioidctoken)

Properties of an OidcToken.

### [protos.google.pubsub.v1.PushConfig.IPubsubWrapper](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.pushconfig.ipubsubwrapper)

Properties of a PubsubWrapper.

### [protos.google.pubsub.v1.StreamingPullResponse.IAcknowledgeConfirmation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.iacknowledgeconfirmation)

Properties of an AcknowledgeConfirmation.

### [protos.google.pubsub.v1.StreamingPullResponse.IModifyAckDeadlineConfirmation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.imodifyackdeadlineconfirmation)

Properties of a ModifyAckDeadlineConfirmation.

### [protos.google.pubsub.v1.StreamingPullResponse.ISubscriptionProperties](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.streamingpullresponse.isubscriptionproperties)

Properties of a SubscriptionProperties.

### [protos.google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.subscription.ianalyticshubsubscriptioninfo)

Properties of an AnalyticsHubSubscriptionInfo.

### [PublishOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/publishoptions)

### [SchemaMessageMetadata](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/schemamessagemetadata)

Schema metadata that might be gathered from a Pub/Sub message. This is created for you from .

### [SubscriberOptions](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/subscriberoptions)

{object} SubscriberOptions {number} \[ackDeadline=10\] Acknowledge deadline in seconds. If left unset, the initial value will be 10 seconds, but it will evolve into the 99th percentile time it takes to acknowledge a message, subject to the limitations of minAckDeadline and maxAckDeadline. If ackDeadline is set by the user, then the min/max values will be set to match it. New code should prefer setting minAckDeadline and maxAckDeadline directly. {Duration} \[minAckDeadline\] The minimum time that ackDeadline should ever have, while it's under library control. {Duration} \[maxAckDeadline\] The maximum time that ackDeadline should ever have, while it's under library control. {BatchOptions} \[batching\] Request batching options. {FlowControlOptions} \[flowControl\] Flow control options. {boolean} \[useLegacyFlowControl\] Disables enforcing flow control settings at the Cloud PubSub server and uses the less accurate method of only enforcing flow control at the client side. {MessageStreamOptions} \[streamingOptions\] Streaming options.

### [Subscription](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/subscription-interface)

## Enums

### [protos.google.api.ClientLibraryDestination](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.clientlibrarydestination)

ClientLibraryDestination enum.

### [protos.google.api.ClientLibraryOrganization](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.clientlibraryorganization)

ClientLibraryOrganization enum.

### [protos.google.api.FieldBehavior](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.fieldbehavior)

FieldBehavior enum.

### [protos.google.api.LaunchStage](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.launchstage)

LaunchStage enum.

### [protos.google.api.ResourceDescriptor.History](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.resourcedescriptor.history)

History enum.

### [protos.google.api.ResourceDescriptor.Style](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.api.resourcedescriptor.style)

Style enum.

### [protos.google.protobuf.Edition](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.edition)

Edition enum.

### [protos.google.protobuf.ExtensionRangeOptions.VerificationState](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.extensionrangeoptions.verificationstate)

VerificationState enum.

### [protos.google.protobuf.FeatureSet.EnumType](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.enumtype)

EnumType enum.

### [protos.google.protobuf.FeatureSet.FieldPresence](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.fieldpresence)

FieldPresence enum.

### [protos.google.protobuf.FeatureSet.JsonFormat](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.jsonformat)

JsonFormat enum.

### [protos.google.protobuf.FeatureSet.MessageEncoding](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.messageencoding)

MessageEncoding enum.

### [protos.google.protobuf.FeatureSet.RepeatedFieldEncoding](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.repeatedfieldencoding)

RepeatedFieldEncoding enum.

### [protos.google.protobuf.FeatureSet.Utf8Validation](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.featureset.utf8validation)

Utf8Validation enum.

### [protos.google.protobuf.FieldDescriptorProto.Label](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fielddescriptorproto.label)

Label enum.

### [protos.google.protobuf.FieldDescriptorProto.Type](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fielddescriptorproto.type)

Type enum.

### [protos.google.protobuf.FieldOptions.CType](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.ctype)

CType enum.

### [protos.google.protobuf.FieldOptions.JSType](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.jstype)

JSType enum.

### [protos.google.protobuf.FieldOptions.OptionRetention](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.optionretention)

OptionRetention enum.

### [protos.google.protobuf.FieldOptions.OptionTargetType](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fieldoptions.optiontargettype)

OptionTargetType enum.

### [protos.google.protobuf.FileOptions.OptimizeMode](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.fileoptions.optimizemode)

OptimizeMode enum.

### [protos.google.protobuf.GeneratedCodeInfo.Annotation.Semantic](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.generatedcodeinfo.annotation.semantic)

Semantic enum.

### [protos.google.protobuf.MethodOptions.IdempotencyLevel](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.protobuf.methodoptions.idempotencylevel)

IdempotencyLevel enum.

### [protos.google.pubsub.v1.BigQueryConfig.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.bigqueryconfig.state)

State enum.

### [protos.google.pubsub.v1.CloudStorageConfig.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.cloudstorageconfig.state)

State enum.

### [protos.google.pubsub.v1.Encoding](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.encoding)

Encoding enum.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.awskinesis.state)

State enum.

### [protos.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.ingestiondatasourcesettings.cloudstorage.state)

State enum.

### [protos.google.pubsub.v1.PlatformLogsSettings.Severity](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.platformlogssettings.severity)

Severity enum.

### [protos.google.pubsub.v1.Schema.Type](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.schema.type)

Type enum.

### [protos.google.pubsub.v1.SchemaView](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.schemaview)

SchemaView enum.

### [protos.google.pubsub.v1.Subscription.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.subscription.state)

State enum.

### [protos.google.pubsub.v1.Topic.State](https://docs.cloud.google.com/nodejs/docs/reference/pubsub/latest/pubsub/protos.google.pubsub.v1.topic.state)

State enum.

## Variables

### AckResponses

    AckResponses: {
        PermissionDenied: "PERMISSION_DENIED";
        FailedPrecondition: "FAILED_PRECONDITION";
        Success: "SUCCESS";
        Invalid: "INVALID";
        Other: "OTHER";
    }

### Encodings

    Encodings: {
        Json: "JSON";
        Binary: "BINARY";
    }

### openTelemetry

    legacyExports: {
        createSpan: (spanName: string, kind: SpanKind, attributes?: SpanAttributes, parent?: SpanContext) => Span;
    }

### SchemaTypes

    SchemaTypes: {
        ProtocolBuffer: "PROTOCOL_BUFFER";
        Avro: "AVRO";
    }

### SchemaViews

    SchemaViews: {
        Basic: "BASIC";
        Full: "FULL";
    }

## Type Aliases

### AckResponse

    export type AckResponse = ValueOf

### Attributes

    export type Attributes = Record

Strings are the only allowed values for keys and values in message attributes.

### CreateSchemaResponse

    export type CreateSchemaResponse = google.pubsub.v1.Schema;

### CreateSnapshotCallback

    export type CreateSnapshotCallback = ResourceCallback

### CreateSnapshotResponse

    export type CreateSnapshotResponse = [Snapshot, google.pubsub.v1.ISnapshot];

### CreateSubscriptionCallback

    export type CreateSubscriptionCallback = SubscriptionCallback;

### CreateSubscriptionOptions

    export type CreateSubscriptionOptions = SubscriptionMetadata & {
        gaxOpts?: CallOptions;
        flowControl?: FlowControlOptions;
    };

### CreateSubscriptionResponse

    export type CreateSubscriptionResponse = SubscriptionResponse;

### CreateTopicCallback

    export type CreateTopicCallback = TopicCallback;

### CreateTopicResponse

    export type CreateTopicResponse = TopicResponse;

### EmptyCallback

    export type EmptyCallback = RequestCallback

### EmptyResponse

    export type EmptyResponse = [google.protobuf.IEmpty];

### ExistsCallback

    export type ExistsCallback = RequestCallback

### ExistsResponse

    export type ExistsResponse = [boolean];

### GetPolicyCallback

    export type GetPolicyCallback = RequestCallback

### GetPolicyResponse

    export type GetPolicyResponse = [Policy];

### GetSnapshotsCallback

    export type GetSnapshotsCallback = RequestCallback

### GetSnapshotsResponse

    export type GetSnapshotsResponse = PagedResponse

### GetSubscriptionCallback

    export type GetSubscriptionCallback = SubscriptionCallback;

### GetSubscriptionMetadataCallback

    export type GetSubscriptionMetadataCallback = MetadataCallback;

### GetSubscriptionMetadataResponse

    export type GetSubscriptionMetadataResponse = MetadataResponse;

### GetSubscriptionOptions

    export type GetSubscriptionOptions = CallOptions & {
        autoCreate?: boolean;
    };

### GetSubscriptionResponse

    export type GetSubscriptionResponse = SubscriptionResponse;

### GetSubscriptionsCallback

    export type GetSubscriptionsCallback = GetAllSubscriptionsCallback | GetTopicSubscriptionsCallback;

### GetSubscriptionsResponse

    export type GetSubscriptionsResponse = GetAllSubscriptionsResponse | GetTopicSubscriptionsResponse;

### GetTopicCallback

    export type GetTopicCallback = TopicCallback;

### GetTopicMetadataCallback

    export type GetTopicMetadataCallback = MetadataCallback;

### GetTopicMetadataResponse

    export type GetTopicMetadataResponse = MetadataResponse;

### GetTopicOptions

    export type GetTopicOptions = CallOptions & {
        autoCreate?: boolean;
    };

### GetTopicResponse

    export type GetTopicResponse = TopicResponse;

### GetTopicsCallback

    export type GetTopicsCallback = RequestCallback

### GetTopicsResponse

    export type GetTopicsResponse = PagedResponse

### GetTopicSubscriptionsCallback

    export type GetTopicSubscriptionsCallback = RequestCallback

### GetTopicSubscriptionsResponse

    export type GetTopicSubscriptionsResponse = PagedResponse

### ICreateSchemaRequest

    export type ICreateSchemaRequest = google.pubsub.v1.ICreateSchemaRequest;

### ISchema

    export type ISchema = google.pubsub.v1.ISchema;

### Policy

    export type Policy = {
        etag?: string | Buffer;
    } & Omit

### protos.google.pubsub.v1.Publisher.CreateTopicCallback

    type CreateTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.DeleteTopicCallback

    type DeleteTopicCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.DetachSubscriptionCallback

    type DetachSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.DetachSubscriptionResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.GetTopicCallback

    type GetTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.ListTopicsCallback

    type ListTopicsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.ListTopicSnapshotsCallback

    type ListTopicSnapshotsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicSnapshotsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.ListTopicSubscriptionsCallback

    type ListTopicSubscriptionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListTopicSubscriptionsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.PublishCallback

    type PublishCallback = (error: (Error|null), response?: google.pubsub.v1.PublishResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Publisher.UpdateTopicCallback

    type UpdateTopicCallback = (error: (Error|null), response?: google.pubsub.v1.Topic) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.CommitSchemaCallback

    type CommitSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.CreateSchemaCallback

    type CreateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.DeleteSchemaCallback

    type DeleteSchemaCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.DeleteSchemaRevisionCallback

    type DeleteSchemaRevisionCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.GetSchemaCallback

    type GetSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.ListSchemaRevisionsCallback

    type ListSchemaRevisionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemaRevisionsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.ListSchemasCallback

    type ListSchemasCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemasResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.RollbackSchemaCallback

    type RollbackSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.ValidateMessageCallback

    type ValidateMessageCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateMessageResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.SchemaService.ValidateSchemaCallback

    type ValidateSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.ValidateSchemaResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.AcknowledgeCallback

    type AcknowledgeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.CreateSnapshotCallback

    type CreateSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.CreateSubscriptionCallback

    type CreateSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.DeleteSnapshotCallback

    type DeleteSnapshotCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.DeleteSubscriptionCallback

    type DeleteSubscriptionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.GetSnapshotCallback

    type GetSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.GetSubscriptionCallback

    type GetSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.ListSnapshotsCallback

    type ListSnapshotsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSnapshotsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.ListSubscriptionsCallback

    type ListSubscriptionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSubscriptionsResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.ModifyAckDeadlineCallback

    type ModifyAckDeadlineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.ModifyPushConfigCallback

    type ModifyPushConfigCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.PullCallback

    type PullCallback = (error: (Error|null), response?: google.pubsub.v1.PullResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.SeekCallback

    type SeekCallback = (error: (Error|null), response?: google.pubsub.v1.SeekResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.StreamingPullCallback

    type StreamingPullCallback = (error: (Error|null), response?: google.pubsub.v1.StreamingPullResponse) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.UpdateSnapshotCallback

    type UpdateSnapshotCallback = (error: (Error|null), response?: google.pubsub.v1.Snapshot) => void;

Callback as used by .

### protos.google.pubsub.v1.Subscriber.UpdateSubscriptionCallback

    type UpdateSubscriptionCallback = (error: (Error|null), response?: google.pubsub.v1.Subscription) => void;

Callback as used by .

### PublishCallback

    export type PublishCallback = RequestCallback

### PushConfig

    export type PushConfig = google.pubsub.v1.IPushConfig;

### SchemaEncoding

    export type SchemaEncoding = keyof typeof google.pubsub.v1.Encoding;

### SchemaType

    export type SchemaType = keyof typeof google.pubsub.v1.Schema.Type;

### SchemaView

    export type SchemaView = keyof typeof google.pubsub.v1.SchemaView;

### SeekCallback

    export type SeekCallback = RequestCallback

### SeekResponse

    export type SeekResponse = [google.pubsub.v1.ISeekResponse];

### SetPolicyCallback

    export type SetPolicyCallback = RequestCallback

### SetPolicyResponse

    export type SetPolicyResponse = [Policy];

### SetSubscriptionMetadataCallback

    export type SetSubscriptionMetadataCallback = MetadataCallback;

### SetSubscriptionMetadataResponse

    export type SetSubscriptionMetadataResponse = MetadataResponse;

### SetTopicMetadataCallback

    export type SetTopicMetadataCallback = MetadataCallback;

### SetTopicMetadataResponse

    export type SetTopicMetadataResponse = MetadataResponse;

### SubscriptionCloseCallback

    export type SubscriptionCloseCallback = (err?: Error) => void;

### SubscriptionMetadata

    export type SubscriptionMetadata = {
        messageRetentionDuration?: google.protobuf.IDuration | number;
        pushEndpoint?: string;
        oidcToken?: OidcToken;
    } & Omit

### SubscriptionOptions

    export type SubscriptionOptions = SubscriberOptions & {
        topic?: Topic;
    };

### TestIamPermissionsCallback

    export type TestIamPermissionsCallback = ResourceCallback

### TestIamPermissionsResponse

    export type TestIamPermissionsResponse = [
        IamPermissionsMap,
        IamProtos.google.iam.v1.ITestIamPermissionsResponse
    ];

### TopicMetadata

    export type TopicMetadata = google.pubsub.v1.ITopic;

### TotalOfUnit

    export type TotalOfUnit = 'hour' | 'minute' | 'second' | 'millisecond';

Simplified list of values to pass to Duration.totalOf(). This list is taken from the tc39 Temporal.Duration proposal, but larger and smaller units have been left off.