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
Static Methods
getDefaultInstance()
public static MessagePublishRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MessagePublishRequest.Builder newBuilder()
Returns
newBuilder(MessagePublishRequest prototype)
public static MessagePublishRequest.Builder newBuilder(MessagePublishRequest prototype)
Parameter
Returns
public static MessagePublishRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MessagePublishRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MessagePublishRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessagePublishRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessagePublishRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessagePublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MessagePublishRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MessagePublishRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public MessagePublishRequest getDefaultInstanceForType()
Returns
getMessages(int index)
public PubSubMessage getMessages(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
getMessagesCount()
public int getMessagesCount()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
getMessagesList()
public List<PubSubMessage> getMessagesList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
getMessagesOrBuilder(int index)
public PubSubMessageOrBuilder getMessagesOrBuilder(int index)
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Parameter
Returns
getMessagesOrBuilderList()
public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()
The messages to publish.
repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> | |
getParserForType()
public Parser<MessagePublishRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MessagePublishRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MessagePublishRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions