public final class PubsubTarget extends 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.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
TOPIC_NAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TOPIC_NAME_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 [(.google.api.resource_reference) = { ... }
getTopicName
in interface PubsubTargetOrBuilder
public 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 [(.google.api.resource_reference) = { ... }
getTopicNameBytes
in interface PubsubTargetOrBuilder
public 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 PubsubTargetOrBuilder
public int getAttributesCount()
PubsubTargetOrBuilder
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
getAttributesCount
in interface PubsubTargetOrBuilder
public 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 PubsubTargetOrBuilder
public 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 PubsubTargetOrBuilder
public 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 PubsubTargetOrBuilder
public 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 PubsubTargetOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static PubsubTarget parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PubsubTarget parseFrom(InputStream input) throws IOException
IOException
public static PubsubTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PubsubTarget parseDelimitedFrom(InputStream input) throws IOException
IOException
public static PubsubTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PubsubTarget parseFrom(CodedInputStream input) throws IOException
IOException
public static PubsubTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public PubsubTarget.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PubsubTarget.Builder newBuilder()
public static PubsubTarget.Builder newBuilder(PubsubTarget prototype)
public PubsubTarget.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected PubsubTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static PubsubTarget getDefaultInstance()
public static Parser<PubsubTarget> parser()
public Parser<PubsubTarget> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public PubsubTarget getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.