apache.rocketmq.v1.MessageOrBuilder Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: apache/rocketmq/v1/definition.proto
package apache.rocketmq.v1;
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:apache.rocketmq.v1.Message)
com.aliyun.openservices.ons.shaded.com.google.protobuf.MessageOrBuilder {
/**
* .apache.rocketmq.v1.Resource topic = 1;
* @return Whether the topic field is set.
*/
boolean hasTopic();
/**
* .apache.rocketmq.v1.Resource topic = 1;
* @return The topic.
*/
apache.rocketmq.v1.Resource getTopic();
/**
* .apache.rocketmq.v1.Resource topic = 1;
*/
apache.rocketmq.v1.ResourceOrBuilder getTopicOrBuilder();
/**
*
* User defined key-value pairs.
* If user_attribute contains 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_attribute = 2;
*/
int getUserAttributeCount();
/**
*
* User defined key-value pairs.
* If user_attribute contains 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_attribute = 2;
*/
boolean containsUserAttribute(
java.lang.String key);
/**
* Use {@link #getUserAttributeMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getUserAttribute();
/**
*
* User defined key-value pairs.
* If user_attribute contains 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_attribute = 2;
*/
java.util.Map
getUserAttributeMap();
/**
*
* User defined key-value pairs.
* If user_attribute contains 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_attribute = 2;
*/
java.lang.String getUserAttributeOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* User defined key-value pairs.
* If user_attribute contains 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_attribute = 2;
*/
java.lang.String getUserAttributeOrThrow(
java.lang.String key);
/**
* .apache.rocketmq.v1.SystemAttribute system_attribute = 3;
* @return Whether the systemAttribute field is set.
*/
boolean hasSystemAttribute();
/**
* .apache.rocketmq.v1.SystemAttribute system_attribute = 3;
* @return The systemAttribute.
*/
apache.rocketmq.v1.SystemAttribute getSystemAttribute();
/**
* .apache.rocketmq.v1.SystemAttribute system_attribute = 3;
*/
apache.rocketmq.v1.SystemAttributeOrBuilder getSystemAttributeOrBuilder();
/**
* bytes body = 4;
* @return The body.
*/
com.aliyun.openservices.ons.shaded.com.google.protobuf.ByteString getBody();
}