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
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() |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-18 UTC."],[],[]]