Package com.google.cloud.batch.v1alpha
Class JobNotification.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
com.google.cloud.batch.v1alpha.JobNotification.Builder
- All Implemented Interfaces:
JobNotificationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- JobNotification
public static final class JobNotification.Builder
extends com.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
implements JobNotificationOrBuilder
Notification configurations.Protobuf type
google.cloud.batch.v1alpha.JobNotification-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The attribute requirements of messages to be sent to this Pub/Sub topic.The Pub/Sub topic where notifications for the job, like state changes, will be published.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe attribute requirements of messages to be sent to this Pub/Sub topic.The attribute requirements of messages to be sent to this Pub/Sub topic.The attribute requirements of messages to be sent to this Pub/Sub topic.The Pub/Sub topic where notifications for the job, like state changes, will be published.com.google.protobuf.ByteStringThe Pub/Sub topic where notifications for the job, like state changes, will be published.booleanThe attribute requirements of messages to be sent to this Pub/Sub topic.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(JobNotification other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The attribute requirements of messages to be sent to this Pub/Sub topic.The attribute requirements of messages to be sent to this Pub/Sub topic.setMessage(JobNotification.Message.Builder builderForValue) The attribute requirements of messages to be sent to this Pub/Sub topic.setPubsubTopic(String value) The Pub/Sub topic where notifications for the job, like state changes, will be published.setPubsubTopicBytes(com.google.protobuf.ByteString value) The Pub/Sub topic where notifications for the job, like state changes, will be published.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
-
mergeFrom
public JobNotification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>- Throws:
IOException
-
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;- Specified by:
getPubsubTopicin interfaceJobNotificationOrBuilder- Returns:
- The pubsubTopic.
-
getPubsubTopicBytes
public 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;- Specified by:
getPubsubTopicBytesin interfaceJobNotificationOrBuilder- Returns:
- The bytes for pubsubTopic.
-
setPubsubTopic
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;- Parameters:
value- The pubsubTopic to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setPubsubTopicBytes
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;- Parameters:
value- The bytes for pubsubTopic to set.- Returns:
- This builder for chaining.
-
hasMessage
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.v1alpha.JobNotification.Message message = 2;- Specified by:
hasMessagein interfaceJobNotificationOrBuilder- Returns:
- Whether the message field is set.
-
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.v1alpha.JobNotification.Message message = 2;- Specified by:
getMessagein interfaceJobNotificationOrBuilder- Returns:
- The message.
-
setMessage
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1alpha.JobNotification.Message message = 2; -
setMessage
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1alpha.JobNotification.Message message = 2; -
mergeMessage
The attribute requirements of messages to be sent to this Pub/Sub topic. Without this field, no message will be sent.
.google.cloud.batch.v1alpha.JobNotification.Message message = 2; -
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.v1alpha.JobNotification.Message message = 2; -
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.v1alpha.JobNotification.Message message = 2; -
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.v1alpha.JobNotification.Message message = 2;- Specified by:
getMessageOrBuilderin interfaceJobNotificationOrBuilder
-