Class MessagePublishedData (0.14.1)

public final class MessagePublishedData extends GeneratedMessageV3 implements MessagePublishedDataOrBuilder

The event data when a message is published to a topic.

Protobuf type google.events.cloud.pubsub.v1.MessagePublishedData

Static Fields

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTION_FIELD_NUMBER

public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MessagePublishedData getDefaultInstance()
Returns
TypeDescription
MessagePublishedData

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MessagePublishedData.Builder newBuilder()
Returns
TypeDescription
MessagePublishedData.Builder

newBuilder(MessagePublishedData prototype)

public static MessagePublishedData.Builder newBuilder(MessagePublishedData prototype)
Parameter
NameDescription
prototypeMessagePublishedData
Returns
TypeDescription
MessagePublishedData.Builder

parseDelimitedFrom(InputStream input)

public static MessagePublishedData parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MessagePublishedData parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MessagePublishedData parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MessagePublishedData parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MessagePublishedData parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MessagePublishedData parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MessagePublishedData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessagePublishedData
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MessagePublishedData> parser()
Returns
TypeDescription
Parser<MessagePublishedData>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MessagePublishedData getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishedData

getMessage()

public PubsubMessage getMessage()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
PubsubMessage

The message.

getMessageOrBuilder()

public PubsubMessageOrBuilder getMessageOrBuilder()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
PubsubMessageOrBuilder

getParserForType()

public Parser<MessagePublishedData> getParserForType()
Returns
TypeDescription
Parser<MessagePublishedData>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubscription()

public String getSubscription()

The resource name of the subscription for which this event was generated. The format of the value is projects/{project-id}/subscriptions/{subscription-id}.

string subscription = 2;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The resource name of the subscription for which this event was generated. The format of the value is projects/{project-id}/subscriptions/{subscription-id}.

string subscription = 2;

Returns
TypeDescription
ByteString

The bytes for subscription.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasMessage()

public boolean hasMessage()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
boolean

Whether the message field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MessagePublishedData.Builder newBuilderForType()
Returns
TypeDescription
MessagePublishedData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MessagePublishedData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MessagePublishedData.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MessagePublishedData.Builder toBuilder()
Returns
TypeDescription
MessagePublishedData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException