Package pbx
Class Model.ClientPub.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<Model.ClientPub,Model.ClientPub.Builder>
-
- pbx.Model.ClientPub.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,java.lang.Cloneable,Model.ClientPubOrBuilder
- Enclosing class:
- Model.ClientPub
public static final class Model.ClientPub.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Model.ClientPub,Model.ClientPub.Builder> implements Model.ClientPubOrBuilder
ClientPub is client's request to publish data to topic subscribers {pub}Protobuf typepbx.ClientPub
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Model.ClientPub.BuilderclearContent()bytes content = 5 [json_name = "content"];Model.ClientPub.BuilderclearHead()Model.ClientPub.BuilderclearId()string id = 1 [json_name = "id"];Model.ClientPub.BuilderclearNoEcho()bool no_echo = 3 [json_name = "noEcho"];Model.ClientPub.BuilderclearTopic()string topic = 2 [json_name = "topic"];booleancontainsHead(java.lang.String key)map<string, bytes> head = 4 [json_name = "head"];com.google.protobuf.ByteStringgetContent()bytes content = 5 [json_name = "content"];java.util.Map<java.lang.String,com.google.protobuf.ByteString>getHead()Deprecated.intgetHeadCount()map<string, bytes> head = 4 [json_name = "head"];java.util.Map<java.lang.String,com.google.protobuf.ByteString>getHeadMap()map<string, bytes> head = 4 [json_name = "head"];com.google.protobuf.ByteStringgetHeadOrDefault(java.lang.String key, com.google.protobuf.ByteString defaultValue)map<string, bytes> head = 4 [json_name = "head"];com.google.protobuf.ByteStringgetHeadOrThrow(java.lang.String key)map<string, bytes> head = 4 [json_name = "head"];java.lang.StringgetId()string id = 1 [json_name = "id"];com.google.protobuf.ByteStringgetIdBytes()string id = 1 [json_name = "id"];booleangetNoEcho()bool no_echo = 3 [json_name = "noEcho"];java.lang.StringgetTopic()string topic = 2 [json_name = "topic"];com.google.protobuf.ByteStringgetTopicBytes()string topic = 2 [json_name = "topic"];Model.ClientPub.BuilderputAllHead(java.util.Map<java.lang.String,com.google.protobuf.ByteString> values)map<string, bytes> head = 4 [json_name = "head"];Model.ClientPub.BuilderputHead(java.lang.String key, com.google.protobuf.ByteString value)map<string, bytes> head = 4 [json_name = "head"];Model.ClientPub.BuilderremoveHead(java.lang.String key)map<string, bytes> head = 4 [json_name = "head"];Model.ClientPub.BuildersetContent(com.google.protobuf.ByteString value)bytes content = 5 [json_name = "content"];Model.ClientPub.BuildersetId(java.lang.String value)string id = 1 [json_name = "id"];Model.ClientPub.BuildersetIdBytes(com.google.protobuf.ByteString value)string id = 1 [json_name = "id"];Model.ClientPub.BuildersetNoEcho(boolean value)bool no_echo = 3 [json_name = "noEcho"];Model.ClientPub.BuildersetTopic(java.lang.String value)string topic = 2 [json_name = "topic"];Model.ClientPub.BuildersetTopicBytes(com.google.protobuf.ByteString value)string topic = 2 [json_name = "topic"];-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceModel.ClientPubOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceModel.ClientPubOrBuilder- Returns:
- The bytes for id.
-
setId
public Model.ClientPub.Builder setId(java.lang.String value)
string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Model.ClientPub.Builder clearId()
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
public Model.ClientPub.Builder setIdBytes(com.google.protobuf.ByteString value)
string id = 1 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getTopic
public java.lang.String getTopic()
string topic = 2 [json_name = "topic"];- Specified by:
getTopicin interfaceModel.ClientPubOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()
string topic = 2 [json_name = "topic"];- Specified by:
getTopicBytesin interfaceModel.ClientPubOrBuilder- Returns:
- The bytes for topic.
-
setTopic
public Model.ClientPub.Builder setTopic(java.lang.String value)
string topic = 2 [json_name = "topic"];- Parameters:
value- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
public Model.ClientPub.Builder clearTopic()
string topic = 2 [json_name = "topic"];- Returns:
- This builder for chaining.
-
setTopicBytes
public Model.ClientPub.Builder setTopicBytes(com.google.protobuf.ByteString value)
string topic = 2 [json_name = "topic"];- Parameters:
value- The bytes for topic to set.- Returns:
- This builder for chaining.
-
getNoEcho
public boolean getNoEcho()
bool no_echo = 3 [json_name = "noEcho"];- Specified by:
getNoEchoin interfaceModel.ClientPubOrBuilder- Returns:
- The noEcho.
-
setNoEcho
public Model.ClientPub.Builder setNoEcho(boolean value)
bool no_echo = 3 [json_name = "noEcho"];- Parameters:
value- The noEcho to set.- Returns:
- This builder for chaining.
-
clearNoEcho
public Model.ClientPub.Builder clearNoEcho()
bool no_echo = 3 [json_name = "noEcho"];- Returns:
- This builder for chaining.
-
getHeadCount
public int getHeadCount()
Description copied from interface:Model.ClientPubOrBuildermap<string, bytes> head = 4 [json_name = "head"];- Specified by:
getHeadCountin interfaceModel.ClientPubOrBuilder
-
containsHead
public boolean containsHead(java.lang.String key)
map<string, bytes> head = 4 [json_name = "head"];- Specified by:
containsHeadin interfaceModel.ClientPubOrBuilder
-
clearHead
public Model.ClientPub.Builder clearHead()
-
removeHead
public Model.ClientPub.Builder removeHead(java.lang.String key)
map<string, bytes> head = 4 [json_name = "head"];
-
getHead
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.ByteString> getHead()
Deprecated.UsegetHeadMap()instead.- Specified by:
getHeadin interfaceModel.ClientPubOrBuilder
-
getHeadMap
public java.util.Map<java.lang.String,com.google.protobuf.ByteString> getHeadMap()
map<string, bytes> head = 4 [json_name = "head"];- Specified by:
getHeadMapin interfaceModel.ClientPubOrBuilder
-
getHeadOrDefault
public com.google.protobuf.ByteString getHeadOrDefault(java.lang.String key, com.google.protobuf.ByteString defaultValue)map<string, bytes> head = 4 [json_name = "head"];- Specified by:
getHeadOrDefaultin interfaceModel.ClientPubOrBuilder
-
getHeadOrThrow
public com.google.protobuf.ByteString getHeadOrThrow(java.lang.String key)
map<string, bytes> head = 4 [json_name = "head"];- Specified by:
getHeadOrThrowin interfaceModel.ClientPubOrBuilder
-
putHead
public Model.ClientPub.Builder putHead(java.lang.String key, com.google.protobuf.ByteString value)
map<string, bytes> head = 4 [json_name = "head"];
-
putAllHead
public Model.ClientPub.Builder putAllHead(java.util.Map<java.lang.String,com.google.protobuf.ByteString> values)
map<string, bytes> head = 4 [json_name = "head"];
-
getContent
public com.google.protobuf.ByteString getContent()
bytes content = 5 [json_name = "content"];- Specified by:
getContentin interfaceModel.ClientPubOrBuilder- Returns:
- The content.
-
setContent
public Model.ClientPub.Builder setContent(com.google.protobuf.ByteString value)
bytes content = 5 [json_name = "content"];- Parameters:
value- The content to set.- Returns:
- This builder for chaining.
-
clearContent
public Model.ClientPub.Builder clearContent()
bytes content = 5 [json_name = "content"];- Returns:
- This builder for chaining.
-
-