public static final class NotificationSubscriptionHealthMetrics.Builder extends GeneratedMessage.Builder<NotificationSubscriptionHealthMetrics.Builder> implements NotificationSubscriptionHealthMetricsOrBuilderRepresents a notification subscription health metrics.
Protobuf type
google.shopping.merchant.notifications.v1.NotificationSubscriptionHealthMetrics
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NotificationSubscriptionHealthMetrics.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NotificationSubscriptionHealthMetrics build()| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics |
|
buildPartial()
public NotificationSubscriptionHealthMetrics buildPartial()| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics |
|
clear()
public NotificationSubscriptionHealthMetrics.Builder clear()| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
|
clearAcknowledgedMessagesCount()
public NotificationSubscriptionHealthMetrics.Builder clearAcknowledgedMessagesCount()The number of retained acknowledged messages for the last 24 hours
int64 acknowledged_messages_count = 2;
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
clearName()
public NotificationSubscriptionHealthMetrics.Builder clearName()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 |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
clearOldestUnacknowledgedMessageWaitingTime()
public NotificationSubscriptionHealthMetrics.Builder clearOldestUnacknowledgedMessageWaitingTime()The time since the oldest unacknowledged message was sent in seconds
int64 oldest_unacknowledged_message_waiting_time = 4;
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
clearUndeliveredMessagesCount()
public NotificationSubscriptionHealthMetrics.Builder clearUndeliveredMessagesCount()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 |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NotificationSubscriptionHealthMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NotificationSubscriptionHealthMetrics.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
|
mergeFrom(NotificationSubscriptionHealthMetrics other)
public NotificationSubscriptionHealthMetrics.Builder mergeFrom(NotificationSubscriptionHealthMetrics other)| Parameter | |
|---|---|
| Name | Description |
other |
NotificationSubscriptionHealthMetrics |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
|
setAcknowledgedMessagesCount(long value)
public NotificationSubscriptionHealthMetrics.Builder setAcknowledgedMessagesCount(long value)The number of retained acknowledged messages for the last 24 hours
int64 acknowledged_messages_count = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe acknowledgedMessagesCount to set. |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
setName(String value)
public NotificationSubscriptionHealthMetrics.Builder setName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public NotificationSubscriptionHealthMetrics.Builder setNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
setOldestUnacknowledgedMessageWaitingTime(long value)
public NotificationSubscriptionHealthMetrics.Builder setOldestUnacknowledgedMessageWaitingTime(long value)The time since the oldest unacknowledged message was sent in seconds
int64 oldest_unacknowledged_message_waiting_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe oldestUnacknowledgedMessageWaitingTime to set. |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |
setUndeliveredMessagesCount(long value)
public NotificationSubscriptionHealthMetrics.Builder setUndeliveredMessagesCount(long value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe undeliveredMessagesCount to set. |
| Returns | |
|---|---|
| Type | Description |
NotificationSubscriptionHealthMetrics.Builder |
This builder for chaining. |