public static final class PubSubProtocol.Message extends com.google.protobuf.GeneratedMessage implements PubSubProtocol.MessageOrBuilder
Hedwig.Message
this is the structure that will be serialized
Modifier and Type | Class and Description |
---|---|
static class |
PubSubProtocol.Message.Builder
Protobuf type
Hedwig.Message |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
BODY_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
MSGID_FIELD_NUMBER |
static com.google.protobuf.Parser<PubSubProtocol.Message> |
PARSER |
static int |
SRCREGION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.ByteString |
getBody()
required bytes body = 1; |
static PubSubProtocol.Message |
getDefaultInstance() |
PubSubProtocol.Message |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
PubSubProtocol.MessageHeader |
getHeader()
optional .Hedwig.MessageHeader header = 4; |
PubSubProtocol.MessageHeaderOrBuilder |
getHeaderOrBuilder()
optional .Hedwig.MessageHeader header = 4; |
PubSubProtocol.MessageSeqId |
getMsgId()
optional .Hedwig.MessageSeqId msgId = 3; |
PubSubProtocol.MessageSeqIdOrBuilder |
getMsgIdOrBuilder()
optional .Hedwig.MessageSeqId msgId = 3; |
com.google.protobuf.Parser<PubSubProtocol.Message> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.ByteString |
getSrcRegion()
optional bytes srcRegion = 2; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBody()
required bytes body = 1; |
boolean |
hasHeader()
optional .Hedwig.MessageHeader header = 4; |
boolean |
hasMsgId()
optional .Hedwig.MessageSeqId msgId = 3; |
boolean |
hasSrcRegion()
optional bytes srcRegion = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PubSubProtocol.Message.Builder |
newBuilder() |
static PubSubProtocol.Message.Builder |
newBuilder(PubSubProtocol.Message prototype) |
PubSubProtocol.Message.Builder |
newBuilderForType() |
protected PubSubProtocol.Message.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static PubSubProtocol.Message |
parseDelimitedFrom(InputStream input) |
static PubSubProtocol.Message |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubSubProtocol.Message |
parseFrom(byte[] data) |
static PubSubProtocol.Message |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubSubProtocol.Message |
parseFrom(com.google.protobuf.ByteString data) |
static PubSubProtocol.Message |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubSubProtocol.Message |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PubSubProtocol.Message |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubSubProtocol.Message |
parseFrom(InputStream input) |
static PubSubProtocol.Message |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PubSubProtocol.Message.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<PubSubProtocol.Message> PARSER
public static final int BODY_FIELD_NUMBER
public static final int SRCREGION_FIELD_NUMBER
public static final int MSGID_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER
public static PubSubProtocol.Message getDefaultInstance()
public PubSubProtocol.Message getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<PubSubProtocol.Message> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasBody()
required bytes body = 1;
hasBody
in interface PubSubProtocol.MessageOrBuilder
public com.google.protobuf.ByteString getBody()
required bytes body = 1;
getBody
in interface PubSubProtocol.MessageOrBuilder
public boolean hasSrcRegion()
optional bytes srcRegion = 2;
hasSrcRegion
in interface PubSubProtocol.MessageOrBuilder
public com.google.protobuf.ByteString getSrcRegion()
optional bytes srcRegion = 2;
getSrcRegion
in interface PubSubProtocol.MessageOrBuilder
public boolean hasMsgId()
optional .Hedwig.MessageSeqId msgId = 3;
hasMsgId
in interface PubSubProtocol.MessageOrBuilder
public PubSubProtocol.MessageSeqId getMsgId()
optional .Hedwig.MessageSeqId msgId = 3;
getMsgId
in interface PubSubProtocol.MessageOrBuilder
public PubSubProtocol.MessageSeqIdOrBuilder getMsgIdOrBuilder()
optional .Hedwig.MessageSeqId msgId = 3;
getMsgIdOrBuilder
in interface PubSubProtocol.MessageOrBuilder
public boolean hasHeader()
optional .Hedwig.MessageHeader header = 4;
message header
hasHeader
in interface PubSubProtocol.MessageOrBuilder
public PubSubProtocol.MessageHeader getHeader()
optional .Hedwig.MessageHeader header = 4;
message header
getHeader
in interface PubSubProtocol.MessageOrBuilder
public PubSubProtocol.MessageHeaderOrBuilder getHeaderOrBuilder()
optional .Hedwig.MessageHeader header = 4;
message header
getHeaderOrBuilder
in interface PubSubProtocol.MessageOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static PubSubProtocol.Message parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static PubSubProtocol.Message parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static PubSubProtocol.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static PubSubProtocol.Message parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static PubSubProtocol.Message parseFrom(InputStream input) throws IOException
IOException
public static PubSubProtocol.Message parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PubSubProtocol.Message parseDelimitedFrom(InputStream input) throws IOException
IOException
public static PubSubProtocol.Message parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PubSubProtocol.Message parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static PubSubProtocol.Message parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PubSubProtocol.Message.Builder newBuilder()
public PubSubProtocol.Message.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static PubSubProtocol.Message.Builder newBuilder(PubSubProtocol.Message prototype)
public PubSubProtocol.Message.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected PubSubProtocol.Message.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.