public static final class PubsubTarget.Builder extends GeneratedMessageV3.Builder<PubsubTarget.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PubsubTarget build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PubsubTarget buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PubsubTarget.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder mergeFrom(PubsubTarget other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public PubsubTarget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PubsubTarget.Builder>
IOException
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 PubsubTarget.Builder setTopicName(String value)
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) = { ... }
value
- The topicName to set.public PubsubTarget.Builder clearTopicName()
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) = { ... }
public PubsubTarget.Builder setTopicNameBytes(ByteString value)
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) = { ... }
value
- The bytes for topicName to set.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 PubsubTarget.Builder setData(ByteString value)
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
bytes data = 3;
value
- The data to set.public PubsubTarget.Builder clearData()
The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
bytes data = 3;
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 PubsubTarget.Builder clearAttributes()
public PubsubTarget.Builder removeAttributes(String key)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
@Deprecated public Map<String,String> getMutableAttributes()
public PubsubTarget.Builder putAttributes(String key, String value)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
public PubsubTarget.Builder putAllAttributes(Map<String,String> values)
Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.
map<string, string> attributes = 4;
public final PubsubTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
public final PubsubTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PubsubTarget.Builder>
Copyright © 2022 Google LLC. All rights reserved.