public final class PubsubTarget extends com.google.protobuf.GeneratedMessageV3 implements PubsubTargetOrBuilder
Pub/Sub target. The job will be delivered by publishing a message to the given Pub/Sub topic.Protobuf type
google.cloud.scheduler.v1.PubsubTarget| Modifier and Type | Class and Description |
|---|---|
static class |
PubsubTarget.Builder
Pub/Sub target.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
TOPIC_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttributes(String key)
Attributes for PubsubMessage.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Attributes for PubsubMessage.
|
Map<String,String> |
getAttributesMap()
Attributes for PubsubMessage.
|
String |
getAttributesOrDefault(String key,
String defaultValue)
Attributes for PubsubMessage.
|
String |
getAttributesOrThrow(String key)
Attributes for PubsubMessage.
|
com.google.protobuf.ByteString |
getData()
The message payload for PubsubMessage.
|
static PubsubTarget |
getDefaultInstance() |
PubsubTarget |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<PubsubTarget> |
getParserForType() |
int |
getSerializedSize() |
String |
getTopicName()
Required.
|
com.google.protobuf.ByteString |
getTopicNameBytes()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static PubsubTarget.Builder |
newBuilder() |
static PubsubTarget.Builder |
newBuilder(PubsubTarget prototype) |
PubsubTarget.Builder |
newBuilderForType() |
protected PubsubTarget.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static PubsubTarget |
parseDelimitedFrom(InputStream input) |
static PubsubTarget |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubsubTarget |
parseFrom(byte[] data) |
static PubsubTarget |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubsubTarget |
parseFrom(ByteBuffer data) |
static PubsubTarget |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubsubTarget |
parseFrom(com.google.protobuf.ByteString data) |
static PubsubTarget |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubsubTarget |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PubsubTarget |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PubsubTarget |
parseFrom(InputStream input) |
static PubsubTarget |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PubsubTarget> |
parser() |
PubsubTarget.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TOPIC_NAME_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getTopicName()
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by PubSub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job.
string topic_name = 1;getTopicName in interface PubsubTargetOrBuilderpublic com.google.protobuf.ByteString getTopicNameBytes()
Required. The name of the Cloud Pub/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by PubSub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same project as the Cloud Scheduler job.
string topic_name = 1;getTopicNameBytes in interface PubsubTargetOrBuilderpublic com.google.protobuf.ByteString getData()
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
bytes data = 3;getData in interface PubsubTargetOrBuilderpublic int getAttributesCount()
PubsubTargetOrBuilderAttributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;getAttributesCount in interface PubsubTargetOrBuilderpublic boolean containsAttributes(String key)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;containsAttributes in interface PubsubTargetOrBuilder@Deprecated public Map<String,String> getAttributes()
getAttributesMap() instead.getAttributes in interface PubsubTargetOrBuilderpublic Map<String,String> getAttributesMap()
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;getAttributesMap in interface PubsubTargetOrBuilderpublic String getAttributesOrDefault(String key, String defaultValue)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;getAttributesOrDefault in interface PubsubTargetOrBuilderpublic String getAttributesOrThrow(String key)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;getAttributesOrThrow in interface PubsubTargetOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PubsubTarget parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PubsubTarget parseFrom(InputStream input) throws IOException
IOExceptionpublic static PubsubTarget parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PubsubTarget parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PubsubTarget parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PubsubTarget parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PubsubTarget parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PubsubTarget.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PubsubTarget.Builder newBuilder()
public static PubsubTarget.Builder newBuilder(PubsubTarget prototype)
public PubsubTarget.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PubsubTarget.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PubsubTarget getDefaultInstance()
public static com.google.protobuf.Parser<PubsubTarget> parser()
public com.google.protobuf.Parser<PubsubTarget> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PubsubTarget getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.