Class MessagePublishResponse.Builder (1.5.5)

public static final class MessagePublishResponse.Builder extends GeneratedMessageV3.Builder<MessagePublishResponse.Builder> implements MessagePublishResponseOrBuilder

Response to a MessagePublishRequest.

Protobuf type google.cloud.pubsublite.v1.MessagePublishResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishResponse build()
Returns
TypeDescription
MessagePublishResponse

buildPartial()

public MessagePublishResponse buildPartial()
Returns
TypeDescription
MessagePublishResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartCursor()

public MessagePublishResponse.Builder clearStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
TypeDescription
MessagePublishResponse.Builder

clone()

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

getDefaultInstanceForType()

public MessagePublishResponse getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getStartCursor()

public Cursor getStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
TypeDescription
Cursor

The startCursor.

getStartCursorBuilder()

public Cursor.Builder getStartCursorBuilder()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
TypeDescription
Cursor.Builder

getStartCursorOrBuilder()

public CursorOrBuilder getStartCursorOrBuilder()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
TypeDescription
CursorOrBuilder

hasStartCursor()

public boolean hasStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
TypeDescription
boolean

Whether the startCursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MessagePublishResponse other)

public MessagePublishResponse.Builder mergeFrom(MessagePublishResponse other)
Parameter
NameDescription
otherMessagePublishResponse
Returns
TypeDescription
MessagePublishResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartCursor(Cursor value)

public MessagePublishResponse.Builder mergeStartCursor(Cursor value)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
MessagePublishResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartCursor(Cursor value)

public MessagePublishResponse.Builder setStartCursor(Cursor value)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
MessagePublishResponse.Builder

setStartCursor(Cursor.Builder builderForValue)

public MessagePublishResponse.Builder setStartCursor(Cursor.Builder builderForValue)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
MessagePublishResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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