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