Class PublishRequest (1.10.0)

public final class PublishRequest extends GeneratedMessageV3 implements PublishRequestOrBuilder

Request sent from the client to the server on a stream.

Protobuf type google.cloud.pubsublite.v1.PublishRequest

Static Fields

INITIAL_REQUEST_FIELD_NUMBER

public static final int INITIAL_REQUEST_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_PUBLISH_REQUEST_FIELD_NUMBER

public static final int MESSAGE_PUBLISH_REQUEST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublishRequest getDefaultInstance()
Returns
TypeDescription
PublishRequest

getDescriptor()

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

newBuilder()

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

newBuilder(PublishRequest prototype)

public static PublishRequest.Builder newBuilder(PublishRequest prototype)
Parameter
NameDescription
prototypePublishRequest
Returns
TypeDescription
PublishRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PublishRequest getDefaultInstanceForType()
Returns
TypeDescription
PublishRequest

getInitialRequest()

public InitialPublishRequest getInitialRequest()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;

Returns
TypeDescription
InitialPublishRequest

The initialRequest.

getInitialRequestOrBuilder()

public InitialPublishRequestOrBuilder getInitialRequestOrBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;

Returns
TypeDescription
InitialPublishRequestOrBuilder

getMessagePublishRequest()

public MessagePublishRequest getMessagePublishRequest()

Request to publish messages.

.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;

Returns
TypeDescription
MessagePublishRequest

The messagePublishRequest.

getMessagePublishRequestOrBuilder()

public MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder()

Request to publish messages.

.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;

Returns
TypeDescription
MessagePublishRequestOrBuilder

getParserForType()

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

getRequestTypeCase()

public PublishRequest.RequestTypeCase getRequestTypeCase()
Returns
TypeDescription
PublishRequest.RequestTypeCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasInitialRequest()

public boolean hasInitialRequest()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;

Returns
TypeDescription
boolean

Whether the initialRequest field is set.

hasMessagePublishRequest()

public boolean hasMessagePublishRequest()

Request to publish messages.

.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;

Returns
TypeDescription
boolean

Whether the messagePublishRequest 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 PublishRequest.Builder newBuilderForType()
Returns
TypeDescription
PublishRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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