Classes
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.
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
Message objects provide a simple interface for users to get message data and acknowledge the message.
protos.google.api.CustomHttpPattern
Represents a CustomHttpPattern.
protos.google.api.Http
Represents a Http.
protos.google.api.HttpRule
Represents a HttpRule.
protos.google.api.ResourceDescriptor
Represents a ResourceDescriptor.
protos.google.api.ResourceReference
Represents a ResourceReference.
protos.google.protobuf.DescriptorProto
Represents a DescriptorProto.
protos.google.protobuf.DescriptorProto.ExtensionRange
Represents an ExtensionRange.
protos.google.protobuf.DescriptorProto.ReservedRange
Represents a ReservedRange.
protos.google.protobuf.Duration
Represents a Duration.
protos.google.protobuf.Empty
Represents an Empty.
protos.google.protobuf.EnumDescriptorProto
Represents an EnumDescriptorProto.
protos.google.protobuf.EnumDescriptorProto.EnumReservedRange
Represents an EnumReservedRange.
protos.google.protobuf.EnumOptions
Represents an EnumOptions.
protos.google.protobuf.EnumValueDescriptorProto
Represents an EnumValueDescriptorProto.
protos.google.protobuf.EnumValueOptions
Represents an EnumValueOptions.
protos.google.protobuf.ExtensionRangeOptions
Represents an ExtensionRangeOptions.
protos.google.protobuf.FieldDescriptorProto
Represents a FieldDescriptorProto.
protos.google.protobuf.FieldMask
Represents a FieldMask.
protos.google.protobuf.FieldOptions
Represents a FieldOptions.
protos.google.protobuf.FileDescriptorProto
Represents a FileDescriptorProto.
protos.google.protobuf.FileDescriptorSet
Represents a FileDescriptorSet.
protos.google.protobuf.FileOptions
Represents a FileOptions.
protos.google.protobuf.GeneratedCodeInfo
Represents a GeneratedCodeInfo.
protos.google.protobuf.GeneratedCodeInfo.Annotation
Represents an Annotation.
protos.google.protobuf.MessageOptions
Represents a MessageOptions.
protos.google.protobuf.MethodDescriptorProto
Represents a MethodDescriptorProto.
protos.google.protobuf.MethodOptions
Represents a MethodOptions.
protos.google.protobuf.OneofDescriptorProto
Represents an OneofDescriptorProto.
protos.google.protobuf.OneofOptions
Represents an OneofOptions.
protos.google.protobuf.ServiceDescriptorProto
Represents a ServiceDescriptorProto.
protos.google.protobuf.ServiceOptions
Represents a ServiceOptions.
protos.google.protobuf.SourceCodeInfo
Represents a SourceCodeInfo.
protos.google.protobuf.SourceCodeInfo.Location
Represents a Location.
protos.google.protobuf.Timestamp
Represents a Timestamp.
protos.google.protobuf.UninterpretedOption
Represents an UninterpretedOption.
protos.google.protobuf.UninterpretedOption.NamePart
Represents a NamePart.
protos.google.pubsub.v1.AcknowledgeRequest
Represents an AcknowledgeRequest.
protos.google.pubsub.v1.BigQueryConfig
Represents a BigQueryConfig.
protos.google.pubsub.v1.CreateSchemaRequest
Represents a CreateSchemaRequest.
protos.google.pubsub.v1.CreateSnapshotRequest
Represents a CreateSnapshotRequest.
protos.google.pubsub.v1.DeadLetterPolicy
Represents a DeadLetterPolicy.
protos.google.pubsub.v1.DeleteSchemaRequest
Represents a DeleteSchemaRequest.
protos.google.pubsub.v1.DeleteSnapshotRequest
Represents a DeleteSnapshotRequest.
protos.google.pubsub.v1.DeleteSubscriptionRequest
Represents a DeleteSubscriptionRequest.
protos.google.pubsub.v1.DeleteTopicRequest
Represents a DeleteTopicRequest.
protos.google.pubsub.v1.DetachSubscriptionRequest
Represents a DetachSubscriptionRequest.
protos.google.pubsub.v1.DetachSubscriptionResponse
Represents a DetachSubscriptionResponse.
protos.google.pubsub.v1.ExpirationPolicy
Represents an ExpirationPolicy.
protos.google.pubsub.v1.GetSchemaRequest
Represents a GetSchemaRequest.
protos.google.pubsub.v1.GetSnapshotRequest
Represents a GetSnapshotRequest.
protos.google.pubsub.v1.GetSubscriptionRequest
Represents a GetSubscriptionRequest.