Package com.google.cloud.batch.v1
Class JobNotification.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
- com.google.cloud.batch.v1.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.GeneratedMessageV3.Builder<JobNotification.Builder> implements JobNotificationOrBuilder
Notification configurations.
Protobuf typegoogle.cloud.batch.v1.JobNotification
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobNotification.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JobNotificationbuild()JobNotificationbuildPartial()JobNotification.Builderclear()JobNotification.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)JobNotification.BuilderclearMessage()The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)JobNotification.BuilderclearPubsubTopic()The Pub/Sub topic where notifications like the job state changes will be published.JobNotification.Builderclone()JobNotificationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()JobNotification.MessagegetMessage()The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.Message.BuildergetMessageBuilder()The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.MessageOrBuildergetMessageOrBuilder()The attribute requirements of messages to be sent to this Pub/Sub topic.StringgetPubsubTopic()The Pub/Sub topic where notifications like the job state changes will be published.com.google.protobuf.ByteStringgetPubsubTopicBytes()The Pub/Sub topic where notifications like the job state changes will be published.booleanhasMessage()The attribute requirements of messages to be sent to this Pub/Sub topic.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()JobNotification.BuildermergeFrom(JobNotification other)JobNotification.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)JobNotification.BuildermergeFrom(com.google.protobuf.Message other)JobNotification.BuildermergeMessage(JobNotification.Message value)The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)JobNotification.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JobNotification.BuildersetMessage(JobNotification.Message value)The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.BuildersetMessage(JobNotification.Message.Builder builderForValue)The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.BuildersetPubsubTopic(String value)The Pub/Sub topic where notifications like the job state changes will be published.JobNotification.BuildersetPubsubTopicBytes(com.google.protobuf.ByteString value)The Pub/Sub topic where notifications like the job state changes will be published.JobNotification.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)JobNotification.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clear
public JobNotification.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<JobNotification.Builder>
-
getDefaultInstanceForType
public JobNotification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public JobNotification build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public JobNotification buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public JobNotification.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
setField
public JobNotification.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clearField
public JobNotification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clearOneof
public JobNotification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
setRepeatedField
public JobNotification.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
addRepeatedField
public JobNotification.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
mergeFrom
public JobNotification.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>
-
mergeFrom
public JobNotification.Builder mergeFrom(JobNotification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String getPubsubTopic()
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.string pubsub_topic = 1;- Specified by:
getPubsubTopicin interfaceJobNotificationOrBuilder- Returns:
- The pubsubTopic.
-
getPubsubTopicBytes
public com.google.protobuf.ByteString getPubsubTopicBytes()
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.string pubsub_topic = 1;- Specified by:
getPubsubTopicBytesin interfaceJobNotificationOrBuilder- Returns:
- The bytes for pubsubTopic.
-
setPubsubTopic
public JobNotification.Builder setPubsubTopic(String value)
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.string pubsub_topic = 1;- Parameters:
value- The pubsubTopic to set.- Returns:
- This builder for chaining.
-
clearPubsubTopic
public JobNotification.Builder clearPubsubTopic()
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.string pubsub_topic = 1;- Returns:
- This builder for chaining.
-
setPubsubTopicBytes
public JobNotification.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic where notifications like the job state changes will be published. The topic must exist in the same project as the job and billings will be charged to this project. If not specified, no Pub/Sub messages will be sent. Topic format: `projects/{project}/topics/{topic}`.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.v1.JobNotification.Message message = 2;- Specified by:
hasMessagein interfaceJobNotificationOrBuilder- Returns:
- Whether the message field is set.
-
getMessage
public 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;- Specified by:
getMessagein interfaceJobNotificationOrBuilder- Returns:
- The message.
-
setMessage
public 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;
-
setMessage
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;
-
mergeMessage
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;
-
clearMessage
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;
-
getMessageBuilder
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;
-
getMessageOrBuilder
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;- Specified by:
getMessageOrBuilderin interfaceJobNotificationOrBuilder
-
setUnknownFields
public final JobNotification.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
mergeUnknownFields
public final JobNotification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
-