Class Subscriber (0.2.0)

public final class Subscriber extends GeneratedMessage implements SubscriberOrBuilder

-- Resource Messages -- A subscriber receives notifications from Google Health API.

Protobuf type google.devicesandservices.health.v4.Subscriber

Implements

SubscriberOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINT_AUTHORIZATION_FIELD_NUMBER

public static final int ENDPOINT_AUTHORIZATION_FIELD_NUMBER
Field Value
Type Description
int

ENDPOINT_URI_FIELD_NUMBER

public static final int ENDPOINT_URI_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIBER_CONFIGS_FIELD_NUMBER

public static final int SUBSCRIBER_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Subscriber getDefaultInstance()
Returns
Type Description
Subscriber

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Subscriber.Builder newBuilder()
Returns
Type Description
Subscriber.Builder

newBuilder(Subscriber prototype)

public static Subscriber.Builder newBuilder(Subscriber prototype)
Parameter
Name Description
prototype Subscriber
Returns
Type Description
Subscriber.Builder

parseDelimitedFrom(InputStream input)

public static Subscriber parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Subscriber parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Subscriber parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Subscriber parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Subscriber parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Subscriber parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Subscriber parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subscriber
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Subscriber> parser()
Returns
Type Description
Parser<Subscriber>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the subscriber was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the subscriber was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Subscriber getDefaultInstanceForType()
Returns
Type Description
Subscriber

getEndpointAuthorization()

public EndpointAuthorization getEndpointAuthorization()

Required. Authorization mechanism for a subscriber endpoint. This is required to ensure the endpoint can be verified.

.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointAuthorization

The endpointAuthorization.

getEndpointAuthorizationOrBuilder()

public EndpointAuthorizationOrBuilder getEndpointAuthorizationOrBuilder()

Required. Authorization mechanism for a subscriber endpoint. This is required to ensure the endpoint can be verified.

.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointAuthorizationOrBuilder

getEndpointUri()

public String getEndpointUri()

Required. The full HTTPS URI where update notifications will be sent. The URI must be a valid URL and use HTTPS as the scheme. This endpoint will be verified during CreateSubscriber and UpdateSubscriber calls. See RPC documentation for verification details.

string endpoint_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The endpointUri.

getEndpointUriBytes()

public ByteString getEndpointUriBytes()

Required. The full HTTPS URI where update notifications will be sent. The URI must be a valid URL and use HTTPS as the scheme. This endpoint will be verified during CreateSubscriber and UpdateSubscriber calls. See RPC documentation for verification details.

string endpoint_uri = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for endpointUri.

getName()

public String getName()

Identifier. The resource name of the Subscriber. Format: projects/{project}/subscribers/{subscriber} The {project} ID is a Google Cloud Project ID or Project Number. The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise (e.g., a UUID). Example (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123 Example (System-generated subscriber ID): projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Subscriber. Format: projects/{project}/subscribers/{subscriber} The {project} ID is a Google Cloud Project ID or Project Number. The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise (e.g., a UUID). Example (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123 Example (System-generated subscriber ID): projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Subscriber> getParserForType()
Returns
Type Description
Parser<Subscriber>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Subscriber.State getState()

Output only. The state of the subscriber.

.google.devicesandservices.health.v4.Subscriber.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subscriber.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the subscriber.

.google.devicesandservices.health.v4.Subscriber.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubscriberConfigs(int index)

public SubscriberConfig getSubscriberConfigs(int index)

Optional. Configuration for the subscriber.

repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SubscriberConfig

getSubscriberConfigsCount()

public int getSubscriberConfigsCount()

Optional. Configuration for the subscriber.

repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSubscriberConfigsList()

public List<SubscriberConfig> getSubscriberConfigsList()

Optional. Configuration for the subscriber.

repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SubscriberConfig>

getSubscriberConfigsOrBuilder(int index)

public SubscriberConfigOrBuilder getSubscriberConfigsOrBuilder(int index)

Optional. Configuration for the subscriber.

repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SubscriberConfigOrBuilder

getSubscriberConfigsOrBuilderList()

public List<? extends SubscriberConfigOrBuilder> getSubscriberConfigsOrBuilderList()

Optional. Configuration for the subscriber.

repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.devicesandservices.health.v4.SubscriberConfigOrBuilder>

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which the subscriber was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which the subscriber was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the subscriber was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndpointAuthorization()

public boolean hasEndpointAuthorization()

Required. Authorization mechanism for a subscriber endpoint. This is required to ensure the endpoint can be verified.

.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endpointAuthorization field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which the subscriber was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Subscriber.Builder newBuilderForType()
Returns
Type Description
Subscriber.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Subscriber.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Subscriber.Builder
Overrides

toBuilder()

public Subscriber.Builder toBuilder()
Returns
Type Description
Subscriber.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException