public final class PublishRequest extends GeneratedMessageV3 implements PublishRequestOrBuilder
Request for the Publish method.
Protobuf type google.pubsub.v1.PublishRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PublishRequestImplements
PublishRequestOrBuilderStatic Fields
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Type | Description |
int |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PublishRequest getDefaultInstance()
Type | Description |
PublishRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static PublishRequest.Builder newBuilder()
Type | Description |
PublishRequest.Builder |
newBuilder(PublishRequest prototype)
public static PublishRequest.Builder newBuilder(PublishRequest prototype)
Name | Description |
prototype | PublishRequest |
Type | Description |
PublishRequest.Builder |
parseDelimitedFrom(InputStream input)
public static PublishRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PublishRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PublishRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PublishRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PublishRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PublishRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PublishRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PublishRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PublishRequest> parser()
Type | Description |
Parser<PublishRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public PublishRequest getDefaultInstanceForType()
Type | Description |
PublishRequest |
getMessages(int index)
public PubsubMessage getMessages(int index)
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
PubsubMessage |
getMessagesCount()
public int getMessagesCount()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int |
getMessagesList()
public List<PubsubMessage> getMessagesList()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<PubsubMessage> |
getMessagesOrBuilder(int index)
public PubsubMessageOrBuilder getMessagesOrBuilder(int index)
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
index | int |
Type | Description |
PubsubMessageOrBuilder |
getMessagesOrBuilderList()
public List<? extends PubsubMessageOrBuilder> getMessagesOrBuilderList()
Required. The messages to publish.
repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
List<? extends com.google.pubsub.v1.PubsubMessageOrBuilder> |
getParserForType()
public Parser<PublishRequest> getParserForType()
Type | Description |
Parser<PublishRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTopic()
public String getTopic()
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The topic. |
getTopicBytes()
public ByteString getTopicBytes()
Required. The messages in the request will be published on this topic.
Format is projects/{project}/topics/{topic}
.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for topic. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public PublishRequest.Builder newBuilderForType()
Type | Description |
PublishRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PublishRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PublishRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public PublishRequest.Builder toBuilder()
Type | Description |
PublishRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |