public static final class JobNotification.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder> implements JobNotificationOrBuilder
Notification configurations.Protobuf type
google.cloud.batch.v1.JobNotification| Modifier and Type | Method and Description |
|---|---|
JobNotification.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JobNotification |
build() |
JobNotification |
buildPartial() |
JobNotification.Builder |
clear() |
JobNotification.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
JobNotification.Builder |
clearMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
JobNotification.Builder |
clearPubsubTopic()
The Pub/Sub topic where notifications for the job, like state
changes, will be published.
|
JobNotification.Builder |
clone() |
JobNotification |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
JobNotification.Message |
getMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.Message.Builder |
getMessageBuilder()
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.MessageOrBuilder |
getMessageOrBuilder()
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
String |
getPubsubTopic()
The Pub/Sub topic where notifications for the job, like state
changes, will be published.
|
com.google.protobuf.ByteString |
getPubsubTopicBytes()
The Pub/Sub topic where notifications for the job, like state
changes, will be published.
|
boolean |
hasMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
JobNotification.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
JobNotification.Builder |
mergeFrom(JobNotification other) |
JobNotification.Builder |
mergeFrom(com.google.protobuf.Message other) |
JobNotification.Builder |
mergeMessage(JobNotification.Message value)
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
JobNotification.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
JobNotification.Builder |
setMessage(JobNotification.Message.Builder builderForValue)
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.Builder |
setMessage(JobNotification.Message value)
The attribute requirements of messages to be sent to this Pub/Sub topic.
|
JobNotification.Builder |
setPubsubTopic(String value)
The Pub/Sub topic where notifications for the job, like state
changes, will be published.
|
JobNotification.Builder |
setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic where notifications for the job, like state
changes, will be published.
|
JobNotification.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
JobNotification.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic JobNotification build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic JobNotification buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic JobNotification.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>public JobNotification.Builder mergeFrom(JobNotification other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public JobNotification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>IOExceptionpublic String getPubsubTopic()
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
`projects/{project}/topics/{topic}`.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
For more information about configuring Pub/Sub notifications for
a job, see
https://cloud.google.com/batch/docs/enable-notifications.
string pubsub_topic = 1;getPubsubTopic in interface JobNotificationOrBuilderpublic com.google.protobuf.ByteString getPubsubTopicBytes()
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
`projects/{project}/topics/{topic}`.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
For more information about configuring Pub/Sub notifications for
a job, see
https://cloud.google.com/batch/docs/enable-notifications.
string pubsub_topic = 1;getPubsubTopicBytes in interface JobNotificationOrBuilderpublic JobNotification.Builder setPubsubTopic(String value)
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
`projects/{project}/topics/{topic}`.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
For more information about configuring Pub/Sub notifications for
a job, see
https://cloud.google.com/batch/docs/enable-notifications.
string pubsub_topic = 1;value - The pubsubTopic to set.public JobNotification.Builder clearPubsubTopic()
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
`projects/{project}/topics/{topic}`.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
For more information about configuring Pub/Sub notifications for
a job, see
https://cloud.google.com/batch/docs/enable-notifications.
string pubsub_topic = 1;public JobNotification.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic where notifications for the job, like state
changes, will be published. If undefined, no Pub/Sub notifications
are sent for this job.
Specify the topic using the following format:
`projects/{project}/topics/{topic}`.
Notably, if you want to specify a Pub/Sub topic that is in a
different project than the job, your administrator must grant your
project's Batch service agent permission to publish to that topic.
For more information about configuring Pub/Sub notifications for
a job, see
https://cloud.google.com/batch/docs/enable-notifications.
string pubsub_topic = 1;value - The bytes for pubsubTopic to set.public boolean hasMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;hasMessage in interface JobNotificationOrBuilderpublic JobNotification.Message getMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;getMessage in interface JobNotificationOrBuilderpublic JobNotification.Builder setMessage(JobNotification.Message value)
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;public JobNotification.Builder setMessage(JobNotification.Message.Builder builderForValue)
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;public JobNotification.Builder mergeMessage(JobNotification.Message value)
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;public JobNotification.Builder clearMessage()
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;public JobNotification.Message.Builder getMessageBuilder()
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;public JobNotification.MessageOrBuilder getMessageOrBuilder()
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1.JobNotification.Message message = 2;getMessageOrBuilder in interface JobNotificationOrBuilderpublic final JobNotification.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>public final JobNotification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>Copyright © 2025 Google LLC. All rights reserved.