public interface SubscriptionOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDataTypes(int index)
public abstract String getDataTypes(int index)Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. Supported data types are: "altitude", "distance", "floors", "sleep", "steps", "weight".
repeated string data_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The dataTypes at the given index. |
getDataTypesBytes(int index)
public abstract ByteString getDataTypesBytes(int index)Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. Supported data types are: "altitude", "distance", "floors", "sleep", "steps", "weight".
repeated string data_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the dataTypes at the given index. |
getDataTypesCount()
public abstract int getDataTypesCount()Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. Supported data types are: "altitude", "distance", "floors", "sleep", "steps", "weight".
repeated string data_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of dataTypes. |
getDataTypesList()
public abstract List<String> getDataTypesList()Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. Supported data types are: "altitude", "distance", "floors", "sleep", "steps", "weight".
repeated string data_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the dataTypes. |
getName()
public abstract String getName() Identifier. The resource name of the Subscription.
Format:
projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}
Example:
projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscription-456
The {project} ID is mandatory
(6-30 characters, matching /a-z{6,30}/)
The {subscriber} ID is user-settable
(4-36 characters, matching /a-z/) if provided
during creation, or system-generated otherwise. The {subscription} ID is
user-settable (4-36 chars, matching /a-z/) or
system-generated otherwise.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes() Identifier. The resource name of the Subscription.
Format:
projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}
Example:
projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscription-456
The {project} ID is mandatory
(6-30 characters, matching /a-z{6,30}/)
The {subscriber} ID is user-settable
(4-36 characters, matching /a-z/) if provided
during creation, or system-generated otherwise. The {subscription} ID is
user-settable (4-36 chars, matching /a-z/) or
system-generated otherwise.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUser()
public abstract String getUser() Immutable. The resource name of the user for whom this subscription is
active. Format: users/{user} where {user} is the public healthUserId
as returned by the GetIdentity action in the profile PAPI (see
google.devicesandservices.health.v4main.HealthProfileService.GetIdentity).
string user = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The user. |
getUserBytes()
public abstract ByteString getUserBytes() Immutable. The resource name of the user for whom this subscription is
active. Format: users/{user} where {user} is the public healthUserId
as returned by the GetIdentity action in the profile PAPI (see
google.devicesandservices.health.v4main.HealthProfileService.GetIdentity).
string user = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for user. |