Class NotificationSubscriptionHealthMetrics (1.0.0)

public final class NotificationSubscriptionHealthMetrics extends GeneratedMessageV3 implements NotificationSubscriptionHealthMetricsOrBuilder

Represents a notification subscription health metrics.

Protobuf type google.shopping.merchant.notifications.v1.NotificationSubscriptionHealthMetrics

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NotificationSubscriptionHealthMetrics

Static Fields

ACKNOWLEDGED_MESSAGES_COUNT_FIELD_NUMBER

public static final int ACKNOWLEDGED_MESSAGES_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OLDEST_UNACKNOWLEDGED_MESSAGE_WAITING_TIME_FIELD_NUMBER

public static final int OLDEST_UNACKNOWLEDGED_MESSAGE_WAITING_TIME_FIELD_NUMBER
Field Value
Type Description
int

UNDELIVERED_MESSAGES_COUNT_FIELD_NUMBER

public static final int UNDELIVERED_MESSAGES_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NotificationSubscriptionHealthMetrics getDefaultInstance()
Returns
Type Description
NotificationSubscriptionHealthMetrics

getDescriptor()

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

newBuilder()

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

newBuilder(NotificationSubscriptionHealthMetrics prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAcknowledgedMessagesCount()

public long getAcknowledgedMessagesCount()

The number of retained acknowledged messages for the last 24 hours

int64 acknowledged_messages_count = 2;

Returns
Type Description
long

The acknowledgedMessagesCount.

getDefaultInstanceForType()

public NotificationSubscriptionHealthMetrics getDefaultInstanceForType()
Returns
Type Description
NotificationSubscriptionHealthMetrics

getName()

public String getName()

Output only. Identifier. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The name of the notification configuration. Generated by the Content API upon creation of a new NotificationSubscription. The account represents the merchant ID of the merchant that owns the configuration.

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

Returns
Type Description
ByteString

The bytes for name.

getOldestUnacknowledgedMessageWaitingTime()

public long getOldestUnacknowledgedMessageWaitingTime()

The time since the oldest unacknowledged message was sent in seconds

int64 oldest_unacknowledged_message_waiting_time = 4;

Returns
Type Description
long

The oldestUnacknowledgedMessageWaitingTime.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUndeliveredMessagesCount()

public long getUndeliveredMessagesCount()

The number of unacknowledged messages for the last 7 days, we will attempt to re-deliver the unacknowledged message later and once successfully delivered it will not be counted within unacknowledged messages (the number of unacknowledged messages should gradually decrease to zero once the issue is fixed).

int64 undelivered_messages_count = 3;

Returns
Type Description
long

The undeliveredMessagesCount.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NotificationSubscriptionHealthMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NotificationSubscriptionHealthMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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