Enum SubscriberConfig.SubscriptionCreatePolicy (0.2.0)

public enum SubscriberConfig.SubscriptionCreatePolicy extends Enum<SubscriberConfig.SubscriptionCreatePolicy> implements ProtocolMessageEnum

Policy for subscription creation.

Protobuf enum google.devicesandservices.health.v4.SubscriberConfig.SubscriptionCreatePolicy

Implements

ProtocolMessageEnum

Static Fields

Name Description
AUTOMATIC

When using AUTOMATIC, individual subscriptions are not created or stored. Instead, eligibility for notifications is computed dynamically. When a data update occurs for a given data type, notifications are sent to all subscribers with an AUTOMATIC policy for that data type, provided the user has granted the necessary consents.

This means you do not need to call CreateSubscription for each user; notifications are managed automatically based on user consents. As Subscription resources are not stored, they cannot be retrieved or managed through GetSubscription, ListSubscriptions, UpdateSubscription, or DeleteSubscription.

AUTOMATIC = 1;

AUTOMATIC_VALUE

When using AUTOMATIC, individual subscriptions are not created or stored. Instead, eligibility for notifications is computed dynamically. When a data update occurs for a given data type, notifications are sent to all subscribers with an AUTOMATIC policy for that data type, provided the user has granted the necessary consents.

This means you do not need to call CreateSubscription for each user; notifications are managed automatically based on user consents. As Subscription resources are not stored, they cannot be retrieved or managed through GetSubscription, ListSubscriptions, UpdateSubscription, or DeleteSubscription.

AUTOMATIC = 1;

MANUAL

Requires subscriptions to be created manually for new users. The developer needs to call CreateSubscription for new users.

MANUAL = 2;

MANUAL_VALUE

Requires subscriptions to be created manually for new users. The developer needs to call CreateSubscription for new users.

MANUAL = 2;

SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED

Represents an unspecified policy.

SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED = 0;

SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED_VALUE

Represents an unspecified policy.

SUBSCRIPTION_CREATE_POLICY_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()