Class EventBusMessage

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.vertx.grpc.event.v1alpha.EventBusMessage
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, EventBusMessageOrBuilder, Serializable

public final class EventBusMessage extends com.google.protobuf.GeneratedMessage implements EventBusMessageOrBuilder
Message received from the event bus
Protobuf type vertx.event.v1alpha.EventBusMessage
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAddress

      public String getAddress()
      The address the message was sent to
      
      string address = 1;
      Specified by:
      getAddress in interface EventBusMessageOrBuilder
      Returns:
      The address.
    • getAddressBytes

      public com.google.protobuf.ByteString getAddressBytes()
      The address the message was sent to
      
      string address = 1;
      Specified by:
      getAddressBytes in interface EventBusMessageOrBuilder
      Returns:
      The bytes for address.
    • getConsumerId

      public String getConsumerId()
      The consumer ID for subscription management
      
      string consumer_id = 2;
      Specified by:
      getConsumerId in interface EventBusMessageOrBuilder
      Returns:
      The consumerId.
    • getConsumerIdBytes

      public com.google.protobuf.ByteString getConsumerIdBytes()
      The consumer ID for subscription management
      
      string consumer_id = 2;
      Specified by:
      getConsumerIdBytes in interface EventBusMessageOrBuilder
      Returns:
      The bytes for consumerId.
    • getReplyAddress

      public String getReplyAddress()
      Optional reply address
      Presence means that the message is expecting a reply at this reply address
      This reply address shall be used in Send rpc or Request rpc
      
      string reply_address = 3;
      Specified by:
      getReplyAddress in interface EventBusMessageOrBuilder
      Returns:
      The replyAddress.
    • getReplyAddressBytes

      public com.google.protobuf.ByteString getReplyAddressBytes()
      Optional reply address
      Presence means that the message is expecting a reply at this reply address
      This reply address shall be used in Send rpc or Request rpc
      
      string reply_address = 3;
      Specified by:
      getReplyAddressBytes in interface EventBusMessageOrBuilder
      Returns:
      The bytes for replyAddress.
    • getHeadersCount

      public int getHeadersCount()
      Description copied from interface: EventBusMessageOrBuilder
      Message headers
      
      map<string, string> headers = 4;
      Specified by:
      getHeadersCount in interface EventBusMessageOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
      Message headers
      
      map<string, string> headers = 4;
      Specified by:
      containsHeaders in interface EventBusMessageOrBuilder
    • getHeaders

      @Deprecated public Map<String,String> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface EventBusMessageOrBuilder
    • getHeadersMap

      public Map<String,String> getHeadersMap()
      Message headers
      
      map<string, string> headers = 4;
      Specified by:
      getHeadersMap in interface EventBusMessageOrBuilder
    • getHeadersOrDefault

      public String getHeadersOrDefault(String key, String defaultValue)
      Message headers
      
      map<string, string> headers = 4;
      Specified by:
      getHeadersOrDefault in interface EventBusMessageOrBuilder
    • getHeadersOrThrow

      public String getHeadersOrThrow(String key)
      Message headers
      
      map<string, string> headers = 4;
      Specified by:
      getHeadersOrThrow in interface EventBusMessageOrBuilder
    • hasBody

      public boolean hasBody()
      Message payload
      
      .vertx.event.v1alpha.JsonValue body = 5;
      Specified by:
      hasBody in interface EventBusMessageOrBuilder
      Returns:
      Whether the body field is set.
    • getBody

      public JsonValue getBody()
      Message payload
      
      .vertx.event.v1alpha.JsonValue body = 5;
      Specified by:
      getBody in interface EventBusMessageOrBuilder
      Returns:
      The body.
    • getBodyOrBuilder

      public JsonValueOrBuilder getBodyOrBuilder()
      Message payload
      
      .vertx.event.v1alpha.JsonValue body = 5;
      Specified by:
      getBodyOrBuilder in interface EventBusMessageOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EventBusMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EventBusMessage parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventBusMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventBusMessage parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EventBusMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventBusMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EventBusMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public EventBusMessage.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static EventBusMessage.Builder newBuilder()
    • newBuilder

      public static EventBusMessage.Builder newBuilder(EventBusMessage prototype)
    • toBuilder

      public EventBusMessage.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected EventBusMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EventBusMessage getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<EventBusMessage> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public EventBusMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder