Class MessagePublishRequest (1.9.0)

public final class MessagePublishRequest extends GeneratedMessageV3 implements MessagePublishRequestOrBuilder

Request to publish messages to the topic.

Protobuf type google.cloud.pubsublite.v1.MessagePublishRequest

Static Fields

MESSAGES_FIELD_NUMBER

public static final int MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MessagePublishRequest getDefaultInstance()
Returns
TypeDescription
MessagePublishRequest

getDescriptor()

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

newBuilder()

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

newBuilder(MessagePublishRequest prototype)

public static MessagePublishRequest.Builder newBuilder(MessagePublishRequest prototype)
Parameter
NameDescription
prototypeMessagePublishRequest
Returns
TypeDescription
MessagePublishRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public MessagePublishRequest getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishRequest

getMessages(int index)

public PubSubMessage getMessages(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessage

getMessagesCount()

public int getMessagesCount()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
int

getMessagesList()

public List<PubSubMessage> getMessagesList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
List<PubSubMessage>

getMessagesOrBuilder(int index)

public PubSubMessageOrBuilder getMessagesOrBuilder(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 MessagePublishRequest.Builder newBuilderForType()
Returns
TypeDescription
MessagePublishRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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