Class PublishRequest.Builder (1.13.6)

public static final class PublishRequest.Builder extends GeneratedMessageV3.Builder<PublishRequest.Builder> implements PublishRequestOrBuilder

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

Protobuf type google.cloud.pubsublite.v1.PublishRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublishRequest.Builder
Overrides

build()

public PublishRequest build()
Returns
Type Description
PublishRequest

buildPartial()

public PublishRequest buildPartial()
Returns
Type Description
PublishRequest

clear()

public PublishRequest.Builder clear()
Returns
Type Description
PublishRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PublishRequest.Builder
Overrides

clearInitialRequest()

public PublishRequest.Builder clearInitialRequest()

Initial request on the stream.

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

Returns
Type Description
PublishRequest.Builder

clearMessagePublishRequest()

public PublishRequest.Builder clearMessagePublishRequest()

Request to publish messages.

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

Returns
Type Description
PublishRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PublishRequest.Builder
Overrides

clearRequestType()

public PublishRequest.Builder clearRequestType()
Returns
Type Description
PublishRequest.Builder

clone()

public PublishRequest.Builder clone()
Returns
Type Description
PublishRequest.Builder
Overrides

getDefaultInstanceForType()

public PublishRequest getDefaultInstanceForType()
Returns
Type Description
PublishRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInitialRequest()

public InitialPublishRequest getInitialRequest()

Initial request on the stream.

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

Returns
Type Description
InitialPublishRequest

The initialRequest.

getInitialRequestBuilder()

public InitialPublishRequest.Builder getInitialRequestBuilder()

Initial request on the stream.

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

Returns
Type Description
InitialPublishRequest.Builder

getInitialRequestOrBuilder()

public InitialPublishRequestOrBuilder getInitialRequestOrBuilder()

Initial request on the stream.

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

Returns
Type Description
InitialPublishRequestOrBuilder

getMessagePublishRequest()

public MessagePublishRequest getMessagePublishRequest()

Request to publish messages.

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

Returns
Type Description
MessagePublishRequest

The messagePublishRequest.

getMessagePublishRequestBuilder()

public MessagePublishRequest.Builder getMessagePublishRequestBuilder()

Request to publish messages.

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

Returns
Type Description
MessagePublishRequest.Builder

getMessagePublishRequestOrBuilder()

public MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder()

Request to publish messages.

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

Returns
Type Description
MessagePublishRequestOrBuilder

getRequestTypeCase()

public PublishRequest.RequestTypeCase getRequestTypeCase()
Returns
Type Description
PublishRequest.RequestTypeCase

hasInitialRequest()

public boolean hasInitialRequest()

Initial request on the stream.

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

Returns
Type Description
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
Type Description
boolean

Whether the messagePublishRequest field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublishRequest other)

public PublishRequest.Builder mergeFrom(PublishRequest other)
Parameter
Name Description
other PublishRequest
Returns
Type Description
PublishRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PublishRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PublishRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PublishRequest.Builder
Overrides

mergeInitialRequest(InitialPublishRequest value)

public PublishRequest.Builder mergeInitialRequest(InitialPublishRequest value)

Initial request on the stream.

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

Parameter
Name Description
value InitialPublishRequest
Returns
Type Description
PublishRequest.Builder

mergeMessagePublishRequest(MessagePublishRequest value)

public PublishRequest.Builder mergeMessagePublishRequest(MessagePublishRequest value)

Request to publish messages.

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

Parameter
Name Description
value MessagePublishRequest
Returns
Type Description
PublishRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublishRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PublishRequest.Builder
Overrides

setInitialRequest(InitialPublishRequest value)

public PublishRequest.Builder setInitialRequest(InitialPublishRequest value)

Initial request on the stream.

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

Parameter
Name Description
value InitialPublishRequest
Returns
Type Description
PublishRequest.Builder

setInitialRequest(InitialPublishRequest.Builder builderForValue)

public PublishRequest.Builder setInitialRequest(InitialPublishRequest.Builder builderForValue)

Initial request on the stream.

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

Parameter
Name Description
builderForValue InitialPublishRequest.Builder
Returns
Type Description
PublishRequest.Builder

setMessagePublishRequest(MessagePublishRequest value)

public PublishRequest.Builder setMessagePublishRequest(MessagePublishRequest value)

Request to publish messages.

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

Parameter
Name Description
value MessagePublishRequest
Returns
Type Description
PublishRequest.Builder

setMessagePublishRequest(MessagePublishRequest.Builder builderForValue)

public PublishRequest.Builder setMessagePublishRequest(MessagePublishRequest.Builder builderForValue)

Request to publish messages.

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

Parameter
Name Description
builderForValue MessagePublishRequest.Builder
Returns
Type Description
PublishRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PublishRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublishRequest.Builder
Overrides