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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<JobNotification.Builder> implements JobNotificationOrBuilder
Notification configurations.
Protobuf typegoogle.cloud.batch.v1alpha.JobNotification
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 like the job 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 like the job state changes will be published.com.google.protobuf.ByteString
getPubsubTopicBytes()
The Pub/Sub topic where notifications like the job 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(JobNotification other)
JobNotification.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.Builder
setMessage(JobNotification.Message.Builder builderForValue)
The attribute requirements of messages to be sent to this Pub/Sub topic.JobNotification.Builder
setPubsubTopic(String value)
The Pub/Sub topic where notifications like the job state changes will be published.JobNotification.Builder
setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic where notifications like the job 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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clear
public JobNotification.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
getDefaultInstanceForType
public JobNotification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public JobNotification build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public JobNotification buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public JobNotification.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
setField
public JobNotification.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clearField
public JobNotification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
clearOneof
public JobNotification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
setRepeatedField
public JobNotification.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
addRepeatedField
public JobNotification.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
mergeFrom
public JobNotification.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Builder>
-
mergeFrom
public JobNotification.Builder mergeFrom(JobNotification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPubsubTopic
in 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:
getPubsubTopicBytes
in 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.v1alpha.JobNotification.Message message = 2;
- Specified by:
hasMessage
in 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.v1alpha.JobNotification.Message message = 2;
- Specified by:
getMessage
in 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.JobNotification.Message message = 2;
- Specified by:
getMessageOrBuilder
in interfaceJobNotificationOrBuilder
-
setUnknownFields
public final JobNotification.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
mergeUnknownFields
public final JobNotification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
-
-