Class PublishRequest.Builder (1.6.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublishRequest.Builder
Overrides

build()

public PublishRequest build()
Returns
TypeDescription
PublishRequest

buildPartial()

public PublishRequest buildPartial()
Returns
TypeDescription
PublishRequest

clear()

public PublishRequest.Builder clear()
Returns
TypeDescription
PublishRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PublishRequest.Builder
Overrides

clearInitialRequest()

public PublishRequest.Builder clearInitialRequest()

Initial request on the stream.

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

Returns
TypeDescription
PublishRequest.Builder

clearMessagePublishRequest()

public PublishRequest.Builder clearMessagePublishRequest()

Request to publish messages.

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

Returns
TypeDescription
PublishRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PublishRequest.Builder
Overrides

clearRequestType()

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

clone()

public PublishRequest.Builder clone()
Returns
TypeDescription
PublishRequest.Builder
Overrides

getDefaultInstanceForType()

public PublishRequest getDefaultInstanceForType()
Returns
TypeDescription
PublishRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInitialRequest()

public InitialPublishRequest getInitialRequest()

Initial request on the stream.

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

Returns
TypeDescription
InitialPublishRequest

The initialRequest.

getInitialRequestBuilder()

public InitialPublishRequest.Builder getInitialRequestBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialPublishRequest.Builder

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.

getMessagePublishRequestBuilder()

public MessagePublishRequest.Builder getMessagePublishRequestBuilder()

Request to publish messages.

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

Returns
TypeDescription
MessagePublishRequest.Builder

getMessagePublishRequestOrBuilder()

public MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder()

Request to publish messages.

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

Returns
TypeDescription
MessagePublishRequestOrBuilder

getRequestTypeCase()

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublishRequest other)

public PublishRequest.Builder mergeFrom(PublishRequest other)
Parameter
NameDescription
otherPublishRequest
Returns
TypeDescription
PublishRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublishRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PublishRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInitialPublishRequest
Returns
TypeDescription
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
NameDescription
valueMessagePublishRequest
Returns
TypeDescription
PublishRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublishRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInitialPublishRequest
Returns
TypeDescription
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
NameDescription
builderForValueInitialPublishRequest.Builder
Returns
TypeDescription
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
NameDescription
valueMessagePublishRequest
Returns
TypeDescription
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
NameDescription
builderForValueMessagePublishRequest.Builder
Returns
TypeDescription
PublishRequest.Builder

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

public PublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PublishRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublishRequest.Builder
Overrides