Class Protocol.Publication.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Protocol.Publication,Protocol.Publication.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Publication,Protocol.Publication.Builder>
io.github.centrifugal.centrifuge.internal.protocol.Protocol.Publication.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Protocol.PublicationOrBuilder,Cloneable
- Enclosing class:
Protocol.Publication
public static final class Protocol.Publication.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Protocol.Publication,Protocol.Publication.Builder>
implements Protocol.PublicationOrBuilder
Protobuf type
centrifugal.centrifuge.protocol.Publication-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionbytes data = 4;bool delta = 8;.centrifugal.centrifuge.protocol.ClientInfo info = 5;uint64 offset = 6;booleancontainsTags(String key) map<string, string> tags = 7;com.google.protobuf.ByteStringgetData()bytes data = 4;booleangetDelta()bool delta = 8;getInfo().centrifugal.centrifuge.protocol.ClientInfo info = 5;longuint64 offset = 6;getTags()Deprecated.intmap<string, string> tags = 7;map<string, string> tags = 7;getTagsOrDefault(String key, String defaultValue) map<string, string> tags = 7;getTagsOrThrow(String key) map<string, string> tags = 7;booleanhasInfo().centrifugal.centrifuge.protocol.ClientInfo info = 5;mergeInfo(Protocol.ClientInfo value) .centrifugal.centrifuge.protocol.ClientInfo info = 5;putAllTags(Map<String, String> values) map<string, string> tags = 7;map<string, string> tags = 7;removeTags(String key) map<string, string> tags = 7;setData(com.google.protobuf.ByteString value) bytes data = 4;setDelta(boolean value) bool delta = 8;setInfo(Protocol.ClientInfo value) .centrifugal.centrifuge.protocol.ClientInfo info = 5;setInfo(Protocol.ClientInfo.Builder builderForValue) .centrifugal.centrifuge.protocol.ClientInfo info = 5;setOffset(long value) uint64 offset = 6;Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getData
public com.google.protobuf.ByteString getData()bytes data = 4;- Specified by:
getDatain interfaceProtocol.PublicationOrBuilder- Returns:
- The data.
-
setData
bytes data = 4;- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
clearData
bytes data = 4;- Returns:
- This builder for chaining.
-
hasInfo
public boolean hasInfo().centrifugal.centrifuge.protocol.ClientInfo info = 5;- Specified by:
hasInfoin interfaceProtocol.PublicationOrBuilder- Returns:
- Whether the info field is set.
-
getInfo
.centrifugal.centrifuge.protocol.ClientInfo info = 5;- Specified by:
getInfoin interfaceProtocol.PublicationOrBuilder- Returns:
- The info.
-
setInfo
.centrifugal.centrifuge.protocol.ClientInfo info = 5; -
setInfo
.centrifugal.centrifuge.protocol.ClientInfo info = 5; -
mergeInfo
.centrifugal.centrifuge.protocol.ClientInfo info = 5; -
clearInfo
.centrifugal.centrifuge.protocol.ClientInfo info = 5; -
getOffset
public long getOffset()uint64 offset = 6;- Specified by:
getOffsetin interfaceProtocol.PublicationOrBuilder- Returns:
- The offset.
-
setOffset
uint64 offset = 6;- Parameters:
value- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
uint64 offset = 6;- Returns:
- This builder for chaining.
-
getTagsCount
public int getTagsCount()Description copied from interface:Protocol.PublicationOrBuildermap<string, string> tags = 7;- Specified by:
getTagsCountin interfaceProtocol.PublicationOrBuilder
-
containsTags
map<string, string> tags = 7;- Specified by:
containsTagsin interfaceProtocol.PublicationOrBuilder
-
clearTags
-
removeTags
map<string, string> tags = 7; -
getTags
Deprecated.UsegetTagsMap()instead.- Specified by:
getTagsin interfaceProtocol.PublicationOrBuilder
-
getTagsMap
map<string, string> tags = 7;- Specified by:
getTagsMapin interfaceProtocol.PublicationOrBuilder
-
getTagsOrDefault
map<string, string> tags = 7;- Specified by:
getTagsOrDefaultin interfaceProtocol.PublicationOrBuilder
-
getTagsOrThrow
map<string, string> tags = 7;- Specified by:
getTagsOrThrowin interfaceProtocol.PublicationOrBuilder
-
putTags
map<string, string> tags = 7; -
putAllTags
map<string, string> tags = 7; -
getDelta
public boolean getDelta()bool delta = 8;- Specified by:
getDeltain interfaceProtocol.PublicationOrBuilder- Returns:
- The delta.
-
setDelta
bool delta = 8;- Parameters:
value- The delta to set.- Returns:
- This builder for chaining.
-
clearDelta
bool delta = 8;- Returns:
- This builder for chaining.
-