Class PublishResponse.Builder (1.11.2)

public static final class PublishResponse.Builder extends GeneratedMessageV3.Builder<PublishResponse.Builder> implements PublishResponseOrBuilder

Response to a PublishRequest.

Protobuf type google.cloud.pubsublite.v1.PublishResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublishResponse build()
Returns
TypeDescription
PublishResponse

buildPartial()

public PublishResponse buildPartial()
Returns
TypeDescription
PublishResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInitialResponse()

public PublishResponse.Builder clearInitialResponse()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
TypeDescription
PublishResponse.Builder

clearMessageResponse()

public PublishResponse.Builder clearMessageResponse()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
TypeDescription
PublishResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResponseType()

public PublishResponse.Builder clearResponseType()
Returns
TypeDescription
PublishResponse.Builder

clone()

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

getDefaultInstanceForType()

public PublishResponse getDefaultInstanceForType()
Returns
TypeDescription
PublishResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInitialResponse()

public InitialPublishResponse getInitialResponse()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
TypeDescription
InitialPublishResponse

The initialResponse.

getInitialResponseBuilder()

public InitialPublishResponse.Builder getInitialResponseBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
TypeDescription
InitialPublishResponse.Builder

getInitialResponseOrBuilder()

public InitialPublishResponseOrBuilder getInitialResponseOrBuilder()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
TypeDescription
InitialPublishResponseOrBuilder

getMessageResponse()

public MessagePublishResponse getMessageResponse()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
TypeDescription
MessagePublishResponse

The messageResponse.

getMessageResponseBuilder()

public MessagePublishResponse.Builder getMessageResponseBuilder()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
TypeDescription
MessagePublishResponse.Builder

getMessageResponseOrBuilder()

public MessagePublishResponseOrBuilder getMessageResponseOrBuilder()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
TypeDescription
MessagePublishResponseOrBuilder

getResponseTypeCase()

public PublishResponse.ResponseTypeCase getResponseTypeCase()
Returns
TypeDescription
PublishResponse.ResponseTypeCase

hasInitialResponse()

public boolean hasInitialResponse()

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Returns
TypeDescription
boolean

Whether the initialResponse field is set.

hasMessageResponse()

public boolean hasMessageResponse()

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Returns
TypeDescription
boolean

Whether the messageResponse field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublishResponse other)

public PublishResponse.Builder mergeFrom(PublishResponse other)
Parameter
NameDescription
otherPublishResponse
Returns
TypeDescription
PublishResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PublishResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PublishResponse.Builder
Overrides

mergeInitialResponse(InitialPublishResponse value)

public PublishResponse.Builder mergeInitialResponse(InitialPublishResponse value)

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Parameter
NameDescription
valueInitialPublishResponse
Returns
TypeDescription
PublishResponse.Builder

mergeMessageResponse(MessagePublishResponse value)

public PublishResponse.Builder mergeMessageResponse(MessagePublishResponse value)

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Parameter
NameDescription
valueMessagePublishResponse
Returns
TypeDescription
PublishResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInitialResponse(InitialPublishResponse value)

public PublishResponse.Builder setInitialResponse(InitialPublishResponse value)

Initial response on the stream.

.google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1;

Parameter
NameDescription
valueInitialPublishResponse
Returns
TypeDescription
PublishResponse.Builder

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
NameDescription
builderForValueInitialPublishResponse.Builder
Returns
TypeDescription
PublishResponse.Builder

setMessageResponse(MessagePublishResponse value)

public PublishResponse.Builder setMessageResponse(MessagePublishResponse value)

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Parameter
NameDescription
valueMessagePublishResponse
Returns
TypeDescription
PublishResponse.Builder

setMessageResponse(MessagePublishResponse.Builder builderForValue)

public PublishResponse.Builder setMessageResponse(MessagePublishResponse.Builder builderForValue)

Response to publishing messages.

.google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2;

Parameter
NameDescription
builderForValueMessagePublishResponse.Builder
Returns
TypeDescription
PublishResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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