接口 MessageOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
Message,Message.Builder
public interface MessageOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 booleancontainsUserProperties(String key)User defined key-value pairs.com.google.protobuf.ByteStringgetBody()bytes body = 4;SystemPropertiesgetSystemProperties().apache.rocketmq.v2.SystemProperties system_properties = 3;SystemPropertiesOrBuildergetSystemPropertiesOrBuilder().apache.rocketmq.v2.SystemProperties system_properties = 3;ResourcegetTopic().apache.rocketmq.v2.Resource topic = 1;ResourceOrBuildergetTopicOrBuilder().apache.rocketmq.v2.Resource topic = 1;Map<String,String>getUserProperties()已过时。intgetUserPropertiesCount()User defined key-value pairs.Map<String,String>getUserPropertiesMap()User defined key-value pairs.StringgetUserPropertiesOrDefault(String key, String defaultValue)User defined key-value pairs.StringgetUserPropertiesOrThrow(String key)User defined key-value pairs.booleanhasSystemProperties().apache.rocketmq.v2.SystemProperties system_properties = 3;booleanhasTopic().apache.rocketmq.v2.Resource topic = 1;
-
-
-
方法详细资料
-
hasTopic
boolean hasTopic()
.apache.rocketmq.v2.Resource topic = 1;- 返回:
- Whether the topic field is set.
-
getTopic
Resource getTopic()
.apache.rocketmq.v2.Resource topic = 1;- 返回:
- The topic.
-
getTopicOrBuilder
ResourceOrBuilder getTopicOrBuilder()
.apache.rocketmq.v2.Resource topic = 1;
-
getUserPropertiesCount
int getUserPropertiesCount()
User defined key-value pairs. If user_properties contain the reserved keys by RocketMQ, the send message request will be aborted with status `INVALID_ARGUMENT`. See below links for the reserved keys https://github.com/apache/rocketmq/blob/master/common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java#L58
map<string, string> user_properties = 2;
-
containsUserProperties
boolean containsUserProperties(String key)
User defined key-value pairs. If user_properties contain the reserved keys by RocketMQ, the send message request will be aborted with status `INVALID_ARGUMENT`. See below links for the reserved keys https://github.com/apache/rocketmq/blob/master/common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java#L58
map<string, string> user_properties = 2;
-
getUserProperties
@Deprecated Map<String,String> getUserProperties()
已过时。UsegetUserPropertiesMap()instead.
-
getUserPropertiesMap
Map<String,String> getUserPropertiesMap()
User defined key-value pairs. If user_properties contain the reserved keys by RocketMQ, the send message request will be aborted with status `INVALID_ARGUMENT`. See below links for the reserved keys https://github.com/apache/rocketmq/blob/master/common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java#L58
map<string, string> user_properties = 2;
-
getUserPropertiesOrDefault
String getUserPropertiesOrDefault(String key, String defaultValue)
User defined key-value pairs. If user_properties contain the reserved keys by RocketMQ, the send message request will be aborted with status `INVALID_ARGUMENT`. See below links for the reserved keys https://github.com/apache/rocketmq/blob/master/common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java#L58
map<string, string> user_properties = 2;
-
getUserPropertiesOrThrow
String getUserPropertiesOrThrow(String key)
User defined key-value pairs. If user_properties contain the reserved keys by RocketMQ, the send message request will be aborted with status `INVALID_ARGUMENT`. See below links for the reserved keys https://github.com/apache/rocketmq/blob/master/common/src/main/java/org/apache/rocketmq/common/message/MessageConst.java#L58
map<string, string> user_properties = 2;
-
hasSystemProperties
boolean hasSystemProperties()
.apache.rocketmq.v2.SystemProperties system_properties = 3;- 返回:
- Whether the systemProperties field is set.
-
getSystemProperties
SystemProperties getSystemProperties()
.apache.rocketmq.v2.SystemProperties system_properties = 3;- 返回:
- The systemProperties.
-
getSystemPropertiesOrBuilder
SystemPropertiesOrBuilder getSystemPropertiesOrBuilder()
.apache.rocketmq.v2.SystemProperties system_properties = 3;
-
getBody
com.google.protobuf.ByteString getBody()
bytes body = 4;- 返回:
- The body.
-
-