All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grpc.cache_client.pubsub._SubscriptionItem Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cachepubsub.proto

package grpc.cache_client.pubsub;

/**
 * 
 * Possible message kinds from a topic. They can be items when they're from you, or
 * other kinds when we have something we think you might need to know about the
 * subscription's status.
 * 
* * Protobuf type {@code cache_client.pubsub._SubscriptionItem} */ public final class _SubscriptionItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cache_client.pubsub._SubscriptionItem) _SubscriptionItemOrBuilder { private static final long serialVersionUID = 0L; // Use _SubscriptionItem.newBuilder() to construct. private _SubscriptionItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _SubscriptionItem() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _SubscriptionItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__SubscriptionItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__SubscriptionItem_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client.pubsub._SubscriptionItem.class, grpc.cache_client.pubsub._SubscriptionItem.Builder.class); } private int kindCase_ = 0; @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ITEM(1), DISCONTINUITY(2), HEARTBEAT(3), KIND_NOT_SET(0); private final int value; private KindCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KindCase valueOf(int value) { return forNumber(value); } public static KindCase forNumber(int value) { switch (value) { case 1: return ITEM; case 2: return DISCONTINUITY; case 3: return HEARTBEAT; case 0: return KIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public static final int ITEM_FIELD_NUMBER = 1; /** *
   * The subscription has yielded an item you previously published.
   * 
* * .cache_client.pubsub._TopicItem item = 1; * @return Whether the item field is set. */ @java.lang.Override public boolean hasItem() { return kindCase_ == 1; } /** *
   * The subscription has yielded an item you previously published.
   * 
* * .cache_client.pubsub._TopicItem item = 1; * @return The item. */ @java.lang.Override public grpc.cache_client.pubsub._TopicItem getItem() { if (kindCase_ == 1) { return (grpc.cache_client.pubsub._TopicItem) kind_; } return grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } /** *
   * The subscription has yielded an item you previously published.
   * 
* * .cache_client.pubsub._TopicItem item = 1; */ @java.lang.Override public grpc.cache_client.pubsub._TopicItemOrBuilder getItemOrBuilder() { if (kindCase_ == 1) { return (grpc.cache_client.pubsub._TopicItem) kind_; } return grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } public static final int DISCONTINUITY_FIELD_NUMBER = 2; /** *
   * Momento wants to let you know we detected some possible inconsistency at this
   * point in the subscription stream.
   *
   * A lack of a discontinuity does not mean the subscription is guaranteed to be
   * strictly perfect, but the presence of a discontinuity is very likely to
   * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; * @return Whether the discontinuity field is set. */ @java.lang.Override public boolean hasDiscontinuity() { return kindCase_ == 2; } /** *
   * Momento wants to let you know we detected some possible inconsistency at this
   * point in the subscription stream.
   *
   * A lack of a discontinuity does not mean the subscription is guaranteed to be
   * strictly perfect, but the presence of a discontinuity is very likely to
   * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; * @return The discontinuity. */ @java.lang.Override public grpc.cache_client.pubsub._Discontinuity getDiscontinuity() { if (kindCase_ == 2) { return (grpc.cache_client.pubsub._Discontinuity) kind_; } return grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } /** *
   * Momento wants to let you know we detected some possible inconsistency at this
   * point in the subscription stream.
   *
   * A lack of a discontinuity does not mean the subscription is guaranteed to be
   * strictly perfect, but the presence of a discontinuity is very likely to
   * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ @java.lang.Override public grpc.cache_client.pubsub._DiscontinuityOrBuilder getDiscontinuityOrBuilder() { if (kindCase_ == 2) { return (grpc.cache_client.pubsub._Discontinuity) kind_; } return grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } public static final int HEARTBEAT_FIELD_NUMBER = 3; /** *
   * The stream is still working, there's nothing to see here.
   * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; * @return Whether the heartbeat field is set. */ @java.lang.Override public boolean hasHeartbeat() { return kindCase_ == 3; } /** *
   * The stream is still working, there's nothing to see here.
   * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; * @return The heartbeat. */ @java.lang.Override public grpc.cache_client.pubsub._Heartbeat getHeartbeat() { if (kindCase_ == 3) { return (grpc.cache_client.pubsub._Heartbeat) kind_; } return grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } /** *
   * The stream is still working, there's nothing to see here.
   * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ @java.lang.Override public grpc.cache_client.pubsub._HeartbeatOrBuilder getHeartbeatOrBuilder() { if (kindCase_ == 3) { return (grpc.cache_client.pubsub._Heartbeat) kind_; } return grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (kindCase_ == 1) { output.writeMessage(1, (grpc.cache_client.pubsub._TopicItem) kind_); } if (kindCase_ == 2) { output.writeMessage(2, (grpc.cache_client.pubsub._Discontinuity) kind_); } if (kindCase_ == 3) { output.writeMessage(3, (grpc.cache_client.pubsub._Heartbeat) kind_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (kindCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (grpc.cache_client.pubsub._TopicItem) kind_); } if (kindCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (grpc.cache_client.pubsub._Discontinuity) kind_); } if (kindCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (grpc.cache_client.pubsub._Heartbeat) kind_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.cache_client.pubsub._SubscriptionItem)) { return super.equals(obj); } grpc.cache_client.pubsub._SubscriptionItem other = (grpc.cache_client.pubsub._SubscriptionItem) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: if (!getItem() .equals(other.getItem())) return false; break; case 2: if (!getDiscontinuity() .equals(other.getDiscontinuity())) return false; break; case 3: if (!getHeartbeat() .equals(other.getHeartbeat())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (kindCase_) { case 1: hash = (37 * hash) + ITEM_FIELD_NUMBER; hash = (53 * hash) + getItem().hashCode(); break; case 2: hash = (37 * hash) + DISCONTINUITY_FIELD_NUMBER; hash = (53 * hash) + getDiscontinuity().hashCode(); break; case 3: hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER; hash = (53 * hash) + getHeartbeat().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.cache_client.pubsub._SubscriptionItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.cache_client.pubsub._SubscriptionItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.cache_client.pubsub._SubscriptionItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.cache_client.pubsub._SubscriptionItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Possible message kinds from a topic. They can be items when they're from you, or
   * other kinds when we have something we think you might need to know about the
   * subscription's status.
   * 
* * Protobuf type {@code cache_client.pubsub._SubscriptionItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cache_client.pubsub._SubscriptionItem) grpc.cache_client.pubsub._SubscriptionItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__SubscriptionItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__SubscriptionItem_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.cache_client.pubsub._SubscriptionItem.class, grpc.cache_client.pubsub._SubscriptionItem.Builder.class); } // Construct using grpc.cache_client.pubsub._SubscriptionItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (itemBuilder_ != null) { itemBuilder_.clear(); } if (discontinuityBuilder_ != null) { discontinuityBuilder_.clear(); } if (heartbeatBuilder_ != null) { heartbeatBuilder_.clear(); } kindCase_ = 0; kind_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.cache_client.pubsub.Cachepubsub.internal_static_cache_client_pubsub__SubscriptionItem_descriptor; } @java.lang.Override public grpc.cache_client.pubsub._SubscriptionItem getDefaultInstanceForType() { return grpc.cache_client.pubsub._SubscriptionItem.getDefaultInstance(); } @java.lang.Override public grpc.cache_client.pubsub._SubscriptionItem build() { grpc.cache_client.pubsub._SubscriptionItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.cache_client.pubsub._SubscriptionItem buildPartial() { grpc.cache_client.pubsub._SubscriptionItem result = new grpc.cache_client.pubsub._SubscriptionItem(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(grpc.cache_client.pubsub._SubscriptionItem result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(grpc.cache_client.pubsub._SubscriptionItem result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; if (kindCase_ == 1 && itemBuilder_ != null) { result.kind_ = itemBuilder_.build(); } if (kindCase_ == 2 && discontinuityBuilder_ != null) { result.kind_ = discontinuityBuilder_.build(); } if (kindCase_ == 3 && heartbeatBuilder_ != null) { result.kind_ = heartbeatBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.cache_client.pubsub._SubscriptionItem) { return mergeFrom((grpc.cache_client.pubsub._SubscriptionItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.cache_client.pubsub._SubscriptionItem other) { if (other == grpc.cache_client.pubsub._SubscriptionItem.getDefaultInstance()) return this; switch (other.getKindCase()) { case ITEM: { mergeItem(other.getItem()); break; } case DISCONTINUITY: { mergeDiscontinuity(other.getDiscontinuity()); break; } case HEARTBEAT: { mergeHeartbeat(other.getHeartbeat()); break; } case KIND_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getItemFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 1; break; } // case 10 case 18: { input.readMessage( getDiscontinuityFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 2; break; } // case 18 case 26: { input.readMessage( getHeartbeatFieldBuilder().getBuilder(), extensionRegistry); kindCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int kindCase_ = 0; private java.lang.Object kind_; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public Builder clearKind() { kindCase_ = 0; kind_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._TopicItem, grpc.cache_client.pubsub._TopicItem.Builder, grpc.cache_client.pubsub._TopicItemOrBuilder> itemBuilder_; /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; * @return Whether the item field is set. */ @java.lang.Override public boolean hasItem() { return kindCase_ == 1; } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; * @return The item. */ @java.lang.Override public grpc.cache_client.pubsub._TopicItem getItem() { if (itemBuilder_ == null) { if (kindCase_ == 1) { return (grpc.cache_client.pubsub._TopicItem) kind_; } return grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } else { if (kindCase_ == 1) { return itemBuilder_.getMessage(); } return grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ public Builder setItem(grpc.cache_client.pubsub._TopicItem value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { itemBuilder_.setMessage(value); } kindCase_ = 1; return this; } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ public Builder setItem( grpc.cache_client.pubsub._TopicItem.Builder builderForValue) { if (itemBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { itemBuilder_.setMessage(builderForValue.build()); } kindCase_ = 1; return this; } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ public Builder mergeItem(grpc.cache_client.pubsub._TopicItem value) { if (itemBuilder_ == null) { if (kindCase_ == 1 && kind_ != grpc.cache_client.pubsub._TopicItem.getDefaultInstance()) { kind_ = grpc.cache_client.pubsub._TopicItem.newBuilder((grpc.cache_client.pubsub._TopicItem) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 1) { itemBuilder_.mergeFrom(value); } else { itemBuilder_.setMessage(value); } } kindCase_ = 1; return this; } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ public Builder clearItem() { if (itemBuilder_ == null) { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; } itemBuilder_.clear(); } return this; } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ public grpc.cache_client.pubsub._TopicItem.Builder getItemBuilder() { return getItemFieldBuilder().getBuilder(); } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ @java.lang.Override public grpc.cache_client.pubsub._TopicItemOrBuilder getItemOrBuilder() { if ((kindCase_ == 1) && (itemBuilder_ != null)) { return itemBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 1) { return (grpc.cache_client.pubsub._TopicItem) kind_; } return grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } } /** *
     * The subscription has yielded an item you previously published.
     * 
* * .cache_client.pubsub._TopicItem item = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._TopicItem, grpc.cache_client.pubsub._TopicItem.Builder, grpc.cache_client.pubsub._TopicItemOrBuilder> getItemFieldBuilder() { if (itemBuilder_ == null) { if (!(kindCase_ == 1)) { kind_ = grpc.cache_client.pubsub._TopicItem.getDefaultInstance(); } itemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._TopicItem, grpc.cache_client.pubsub._TopicItem.Builder, grpc.cache_client.pubsub._TopicItemOrBuilder>( (grpc.cache_client.pubsub._TopicItem) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 1; onChanged(); return itemBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Discontinuity, grpc.cache_client.pubsub._Discontinuity.Builder, grpc.cache_client.pubsub._DiscontinuityOrBuilder> discontinuityBuilder_; /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; * @return Whether the discontinuity field is set. */ @java.lang.Override public boolean hasDiscontinuity() { return kindCase_ == 2; } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; * @return The discontinuity. */ @java.lang.Override public grpc.cache_client.pubsub._Discontinuity getDiscontinuity() { if (discontinuityBuilder_ == null) { if (kindCase_ == 2) { return (grpc.cache_client.pubsub._Discontinuity) kind_; } return grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } else { if (kindCase_ == 2) { return discontinuityBuilder_.getMessage(); } return grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ public Builder setDiscontinuity(grpc.cache_client.pubsub._Discontinuity value) { if (discontinuityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { discontinuityBuilder_.setMessage(value); } kindCase_ = 2; return this; } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ public Builder setDiscontinuity( grpc.cache_client.pubsub._Discontinuity.Builder builderForValue) { if (discontinuityBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { discontinuityBuilder_.setMessage(builderForValue.build()); } kindCase_ = 2; return this; } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ public Builder mergeDiscontinuity(grpc.cache_client.pubsub._Discontinuity value) { if (discontinuityBuilder_ == null) { if (kindCase_ == 2 && kind_ != grpc.cache_client.pubsub._Discontinuity.getDefaultInstance()) { kind_ = grpc.cache_client.pubsub._Discontinuity.newBuilder((grpc.cache_client.pubsub._Discontinuity) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 2) { discontinuityBuilder_.mergeFrom(value); } else { discontinuityBuilder_.setMessage(value); } } kindCase_ = 2; return this; } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ public Builder clearDiscontinuity() { if (discontinuityBuilder_ == null) { if (kindCase_ == 2) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 2) { kindCase_ = 0; kind_ = null; } discontinuityBuilder_.clear(); } return this; } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ public grpc.cache_client.pubsub._Discontinuity.Builder getDiscontinuityBuilder() { return getDiscontinuityFieldBuilder().getBuilder(); } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ @java.lang.Override public grpc.cache_client.pubsub._DiscontinuityOrBuilder getDiscontinuityOrBuilder() { if ((kindCase_ == 2) && (discontinuityBuilder_ != null)) { return discontinuityBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 2) { return (grpc.cache_client.pubsub._Discontinuity) kind_; } return grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } } /** *
     * Momento wants to let you know we detected some possible inconsistency at this
     * point in the subscription stream.
     *
     * A lack of a discontinuity does not mean the subscription is guaranteed to be
     * strictly perfect, but the presence of a discontinuity is very likely to
     * 
* * .cache_client.pubsub._Discontinuity discontinuity = 2; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Discontinuity, grpc.cache_client.pubsub._Discontinuity.Builder, grpc.cache_client.pubsub._DiscontinuityOrBuilder> getDiscontinuityFieldBuilder() { if (discontinuityBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = grpc.cache_client.pubsub._Discontinuity.getDefaultInstance(); } discontinuityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Discontinuity, grpc.cache_client.pubsub._Discontinuity.Builder, grpc.cache_client.pubsub._DiscontinuityOrBuilder>( (grpc.cache_client.pubsub._Discontinuity) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; onChanged(); return discontinuityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Heartbeat, grpc.cache_client.pubsub._Heartbeat.Builder, grpc.cache_client.pubsub._HeartbeatOrBuilder> heartbeatBuilder_; /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; * @return Whether the heartbeat field is set. */ @java.lang.Override public boolean hasHeartbeat() { return kindCase_ == 3; } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; * @return The heartbeat. */ @java.lang.Override public grpc.cache_client.pubsub._Heartbeat getHeartbeat() { if (heartbeatBuilder_ == null) { if (kindCase_ == 3) { return (grpc.cache_client.pubsub._Heartbeat) kind_; } return grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } else { if (kindCase_ == 3) { return heartbeatBuilder_.getMessage(); } return grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ public Builder setHeartbeat(grpc.cache_client.pubsub._Heartbeat value) { if (heartbeatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { heartbeatBuilder_.setMessage(value); } kindCase_ = 3; return this; } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ public Builder setHeartbeat( grpc.cache_client.pubsub._Heartbeat.Builder builderForValue) { if (heartbeatBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { heartbeatBuilder_.setMessage(builderForValue.build()); } kindCase_ = 3; return this; } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ public Builder mergeHeartbeat(grpc.cache_client.pubsub._Heartbeat value) { if (heartbeatBuilder_ == null) { if (kindCase_ == 3 && kind_ != grpc.cache_client.pubsub._Heartbeat.getDefaultInstance()) { kind_ = grpc.cache_client.pubsub._Heartbeat.newBuilder((grpc.cache_client.pubsub._Heartbeat) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; } onChanged(); } else { if (kindCase_ == 3) { heartbeatBuilder_.mergeFrom(value); } else { heartbeatBuilder_.setMessage(value); } } kindCase_ = 3; return this; } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ public Builder clearHeartbeat() { if (heartbeatBuilder_ == null) { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; onChanged(); } } else { if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; } heartbeatBuilder_.clear(); } return this; } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ public grpc.cache_client.pubsub._Heartbeat.Builder getHeartbeatBuilder() { return getHeartbeatFieldBuilder().getBuilder(); } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ @java.lang.Override public grpc.cache_client.pubsub._HeartbeatOrBuilder getHeartbeatOrBuilder() { if ((kindCase_ == 3) && (heartbeatBuilder_ != null)) { return heartbeatBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 3) { return (grpc.cache_client.pubsub._Heartbeat) kind_; } return grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } } /** *
     * The stream is still working, there's nothing to see here.
     * 
* * .cache_client.pubsub._Heartbeat heartbeat = 3; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Heartbeat, grpc.cache_client.pubsub._Heartbeat.Builder, grpc.cache_client.pubsub._HeartbeatOrBuilder> getHeartbeatFieldBuilder() { if (heartbeatBuilder_ == null) { if (!(kindCase_ == 3)) { kind_ = grpc.cache_client.pubsub._Heartbeat.getDefaultInstance(); } heartbeatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.cache_client.pubsub._Heartbeat, grpc.cache_client.pubsub._Heartbeat.Builder, grpc.cache_client.pubsub._HeartbeatOrBuilder>( (grpc.cache_client.pubsub._Heartbeat) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 3; onChanged(); return heartbeatBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cache_client.pubsub._SubscriptionItem) } // @@protoc_insertion_point(class_scope:cache_client.pubsub._SubscriptionItem) private static final grpc.cache_client.pubsub._SubscriptionItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.cache_client.pubsub._SubscriptionItem(); } public static grpc.cache_client.pubsub._SubscriptionItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_SubscriptionItem> PARSER = new com.google.protobuf.AbstractParser<_SubscriptionItem>() { @java.lang.Override public _SubscriptionItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser<_SubscriptionItem> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_SubscriptionItem> getParserForType() { return PARSER; } @java.lang.Override public grpc.cache_client.pubsub._SubscriptionItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy