Class MessagePublishRequest.Builder (1.9.0)

public static final class MessagePublishRequest.Builder extends GeneratedMessageV3.Builder<MessagePublishRequest.Builder> implements MessagePublishRequestOrBuilder

Request to publish messages to the topic.

Protobuf type google.cloud.pubsublite.v1.MessagePublishRequest

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends PubSubMessage> values)

public MessagePublishRequest.Builder addAllMessages(Iterable<? extends PubSubMessage> values)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.pubsublite.proto.PubSubMessage>
Returns
TypeDescription
MessagePublishRequest.Builder

addMessages(PubSubMessage value)

public MessagePublishRequest.Builder addMessages(PubSubMessage value)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
valuePubSubMessage
Returns
TypeDescription
MessagePublishRequest.Builder

addMessages(PubSubMessage.Builder builderForValue)

public MessagePublishRequest.Builder addMessages(PubSubMessage.Builder builderForValue)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
builderForValuePubSubMessage.Builder
Returns
TypeDescription
MessagePublishRequest.Builder

addMessages(int index, PubSubMessage value)

public MessagePublishRequest.Builder addMessages(int index, PubSubMessage value)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameters
NameDescription
indexint
valuePubSubMessage
Returns
TypeDescription
MessagePublishRequest.Builder

addMessages(int index, PubSubMessage.Builder builderForValue)

public MessagePublishRequest.Builder addMessages(int index, PubSubMessage.Builder builderForValue)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameters
NameDescription
indexint
builderForValuePubSubMessage.Builder
Returns
TypeDescription
MessagePublishRequest.Builder

addMessagesBuilder()

public PubSubMessage.Builder addMessagesBuilder()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
PubSubMessage.Builder

addMessagesBuilder(int index)

public PubSubMessage.Builder addMessagesBuilder(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishRequest build()
Returns
TypeDescription
MessagePublishRequest

buildPartial()

public MessagePublishRequest buildPartial()
Returns
TypeDescription
MessagePublishRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public MessagePublishRequest.Builder clearMessages()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
MessagePublishRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MessagePublishRequest getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessages(int index)

public PubSubMessage getMessages(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessage

getMessagesBuilder(int index)

public PubSubMessage.Builder getMessagesBuilder(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessage.Builder

getMessagesBuilderList()

public List<PubSubMessage.Builder> getMessagesBuilderList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
List<Builder>

getMessagesCount()

public int getMessagesCount()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
int

getMessagesList()

public List<PubSubMessage> getMessagesList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
List<PubSubMessage>

getMessagesOrBuilder(int index)

public PubSubMessageOrBuilder getMessagesOrBuilder(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PubSubMessageOrBuilder

getMessagesOrBuilderList()

public List<? extends PubSubMessageOrBuilder> getMessagesOrBuilderList()

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Returns
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MessagePublishRequest other)

public MessagePublishRequest.Builder mergeFrom(MessagePublishRequest other)
Parameter
NameDescription
otherMessagePublishRequest
Returns
TypeDescription
MessagePublishRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public MessagePublishRequest.Builder removeMessages(int index)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
MessagePublishRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessages(int index, PubSubMessage value)

public MessagePublishRequest.Builder setMessages(int index, PubSubMessage value)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameters
NameDescription
indexint
valuePubSubMessage
Returns
TypeDescription
MessagePublishRequest.Builder

setMessages(int index, PubSubMessage.Builder builderForValue)

public MessagePublishRequest.Builder setMessages(int index, PubSubMessage.Builder builderForValue)

The messages to publish.

repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1;

Parameters
NameDescription
indexint
builderForValuePubSubMessage.Builder
Returns
TypeDescription
MessagePublishRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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