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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessagePublishedDataImplements
MessagePublishedDataOrBuilderStatic Fields
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SUBSCRIPTION_FIELD_NUMBER
public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MessagePublishedData getDefaultInstance()
Returns | |
---|---|
Type | Description |
MessagePublishedData |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static MessagePublishedData.Builder newBuilder()
Returns | |
---|---|
Type | Description |
MessagePublishedData.Builder |
newBuilder(MessagePublishedData prototype)
public static MessagePublishedData.Builder newBuilder(MessagePublishedData prototype)
Parameter | |
---|---|
Name | Description |
prototype |
MessagePublishedData |
Returns | |
---|---|
Type | Description |
MessagePublishedData.Builder |
parseDelimitedFrom(InputStream input)
public static MessagePublishedData parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static MessagePublishedData parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MessagePublishedData parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MessagePublishedData parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static MessagePublishedData parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MessagePublishedData parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MessagePublishedData |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MessagePublishedData> parser()
Returns | |
---|---|
Type | Description |
Parser<MessagePublishedData> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public MessagePublishedData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MessagePublishedData |
getMessage()
public PubsubMessage getMessage()
The message that was published.
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
Returns | |
---|---|
Type | Description |
PubsubMessage |
The message. |
getMessageOrBuilder()
public PubsubMessageOrBuilder getMessageOrBuilder()
The message that was published.
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
Returns | |
---|---|
Type | Description |
PubsubMessageOrBuilder |
getParserForType()
public Parser<MessagePublishedData> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<MessagePublishedData> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for subscription. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasMessage()
public boolean hasMessage()
The message that was published.
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the message field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public MessagePublishedData.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
MessagePublishedData.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishedData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
MessagePublishedData.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public MessagePublishedData.Builder toBuilder()
Returns | |
---|---|
Type | Description |
MessagePublishedData.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |