类 Message

  • 所有已实现的接口:
    MessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Message
    extends com.google.protobuf.GeneratedMessageV3
    implements MessageOrBuilder
    Protobuf type apache.rocketmq.v2.Message
    另请参阅:
    序列化表格
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  Message.Builder
      Protobuf type apache.rocketmq.v2.Message
      • 从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • 从类继承的嵌套类/接口 com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 字段详细资料

      • TOPIC_FIELD_NUMBER

        public static final int TOPIC_FIELD_NUMBER
        另请参阅:
        常量字段值
      • USER_PROPERTIES_FIELD_NUMBER

        public static final int USER_PROPERTIES_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SYSTEM_PROPERTIES_FIELD_NUMBER

        public static final int SYSTEM_PROPERTIES_FIELD_NUMBER
        另请参阅:
        常量字段值
      • BODY_FIELD_NUMBER

        public static final int BODY_FIELD_NUMBER
        另请参阅:
        常量字段值
    • 方法详细资料

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        覆盖:
        internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • hasTopic

        public boolean hasTopic()
        .apache.rocketmq.v2.Resource topic = 1;
        指定者:
        hasTopic 在接口中 MessageOrBuilder
        返回:
        Whether the topic field is set.
      • getUserPropertiesCount

        public int getUserPropertiesCount()
        从接口复制的说明: MessageOrBuilder
         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;
        指定者:
        getUserPropertiesCount 在接口中 MessageOrBuilder
      • containsUserProperties

        public 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;
        指定者:
        containsUserProperties 在接口中 MessageOrBuilder
      • getUserPropertiesMap

        public 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;
        指定者:
        getUserPropertiesMap 在接口中 MessageOrBuilder
      • getUserPropertiesOrDefault

        public 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;
        指定者:
        getUserPropertiesOrDefault 在接口中 MessageOrBuilder
      • getUserPropertiesOrThrow

        public 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;
        指定者:
        getUserPropertiesOrThrow 在接口中 MessageOrBuilder
      • hasSystemProperties

        public boolean hasSystemProperties()
        .apache.rocketmq.v2.SystemProperties system_properties = 3;
        指定者:
        hasSystemProperties 在接口中 MessageOrBuilder
        返回:
        Whether the systemProperties field is set.
      • getBody

        public com.google.protobuf.ByteString getBody()
        bytes body = 4;
        指定者:
        getBody 在接口中 MessageOrBuilder
        返回:
        The body.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static Message parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Message parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        抛出:
        IOException
      • newBuilderForType

        public Message.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • toBuilder

        public Message.Builder toBuilder()
        指定者:
        toBuilder 在接口中 com.google.protobuf.Message
        指定者:
        toBuilder 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected Message.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Message getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Message> parser()
      • getParserForType

        public com.google.protobuf.Parser<Message> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Message getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder