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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PublishRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PublishRequest build()
Returns
buildPartial()
public PublishRequest buildPartial()
Returns
clear()
public PublishRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PublishRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInitialRequest()
public PublishRequest.Builder clearInitialRequest()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Returns
clearMessagePublishRequest()
public PublishRequest.Builder clearMessagePublishRequest()
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PublishRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRequestType()
public PublishRequest.Builder clearRequestType()
Returns
clone()
public PublishRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PublishRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInitialRequest()
public InitialPublishRequest getInitialRequest()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Returns
getInitialRequestBuilder()
public InitialPublishRequest.Builder getInitialRequestBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Returns
getInitialRequestOrBuilder()
public InitialPublishRequestOrBuilder getInitialRequestOrBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Returns
getMessagePublishRequest()
public MessagePublishRequest getMessagePublishRequest()
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Returns
getMessagePublishRequestBuilder()
public MessagePublishRequest.Builder getMessagePublishRequestBuilder()
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Returns
getMessagePublishRequestOrBuilder()
public MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder()
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Returns
getRequestTypeCase()
public PublishRequest.RequestTypeCase getRequestTypeCase()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PublishRequest other)
public PublishRequest.Builder mergeFrom(PublishRequest other)
Parameter
Returns
public PublishRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PublishRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInitialRequest(InitialPublishRequest value)
public PublishRequest.Builder mergeInitialRequest(InitialPublishRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Parameter
Returns
mergeMessagePublishRequest(MessagePublishRequest value)
public PublishRequest.Builder mergeMessagePublishRequest(MessagePublishRequest value)
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublishRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PublishRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInitialRequest(InitialPublishRequest value)
public PublishRequest.Builder setInitialRequest(InitialPublishRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1;
Parameter
Returns
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
Returns
setMessagePublishRequest(MessagePublishRequest value)
public PublishRequest.Builder setMessagePublishRequest(MessagePublishRequest value)
Request to publish messages.
.google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2;
Parameter
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublishRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublishRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides