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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static 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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MessagePublishedData.Builder newBuilder()
newBuilder(MessagePublishedData prototype)
public static MessagePublishedData.Builder newBuilder(MessagePublishedData prototype)
public static MessagePublishedData parseDelimitedFrom(InputStream input)
public static MessagePublishedData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MessagePublishedData parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MessagePublishedData parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(CodedInputStream input)
public static MessagePublishedData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(InputStream input)
public static MessagePublishedData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MessagePublishedData parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishedData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MessagePublishedData> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public MessagePublishedData getDefaultInstanceForType()
getMessage()
public PubsubMessage getMessage()
The message that was published.
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
getMessageOrBuilder()
public PubsubMessageOrBuilder getMessageOrBuilder()
The message that was published.
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
getParserForType()
public Parser<MessagePublishedData> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
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 |
---|
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()
Overrides
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MessagePublishedData.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishedData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public MessagePublishedData.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides