public static final class PublishResponse.Builder extends GeneratedMessageV3.Builder<PublishResponse.Builder> implements PublishResponseOrBuilder
Response to a PublishRequest.
Protobuf type google.cloud.pubsublite.v1.PublishResponse
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 PublishResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PublishResponse build()
Returns
buildPartial()
public PublishResponse buildPartial()
Returns
clear()
public PublishResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PublishResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInitialResponse()
public PublishResponse.Builder clearInitialResponse()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Returns
clearMessageResponse()
public PublishResponse.Builder clearMessageResponse()
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PublishResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearResponseType()
public PublishResponse.Builder clearResponseType()
Returns
clone()
public PublishResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PublishResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInitialResponse()
public InitialPublishResponse getInitialResponse()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Returns
getInitialResponseBuilder()
public InitialPublishResponse.Builder getInitialResponseBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Returns
getInitialResponseOrBuilder()
public InitialPublishResponseOrBuilder getInitialResponseOrBuilder()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Returns
getMessageResponse()
public MessagePublishResponse getMessageResponse()
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Returns
getMessageResponseBuilder()
public MessagePublishResponse.Builder getMessageResponseBuilder()
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Returns
getMessageResponseOrBuilder()
public MessagePublishResponseOrBuilder getMessageResponseOrBuilder()
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Returns
getResponseTypeCase()
public PublishResponse.ResponseTypeCase getResponseTypeCase()
Returns
hasInitialResponse()
public boolean hasInitialResponse()
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Returns
Type | Description |
boolean | Whether the initialResponse field is set.
|
hasMessageResponse()
public boolean hasMessageResponse()
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Returns
Type | Description |
boolean | Whether the messageResponse field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PublishResponse other)
public PublishResponse.Builder mergeFrom(PublishResponse other)
Parameter
Returns
public PublishResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PublishResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInitialResponse(InitialPublishResponse value)
public PublishResponse.Builder mergeInitialResponse(InitialPublishResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Parameter
Returns
mergeMessageResponse(MessagePublishResponse value)
public PublishResponse.Builder mergeMessageResponse(MessagePublishResponse value)
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PublishResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PublishResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInitialResponse(InitialPublishResponse value)
public PublishResponse.Builder setInitialResponse(InitialPublishResponse value)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Parameter
Returns
setInitialResponse(InitialPublishResponse.Builder builderForValue)
public PublishResponse.Builder setInitialResponse(InitialPublishResponse.Builder builderForValue)
Initial response on the stream.
.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;
Parameter
Returns
setMessageResponse(MessagePublishResponse value)
public PublishResponse.Builder setMessageResponse(MessagePublishResponse value)
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Parameter
Returns
setMessageResponse(MessagePublishResponse.Builder builderForValue)
public PublishResponse.Builder setMessageResponse(MessagePublishResponse.Builder builderForValue)
Response to publishing messages.
.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PublishResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PublishResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides