public static final class JobNotification.Builder extends GeneratedMessageV3.Builder<JobNotification.Builder> implements JobNotificationOrBuilder
Notification configurations.
Protobuf type google.cloud.batch.v1.JobNotification
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobNotification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public JobNotification build()
Returns
buildPartial()
public JobNotification buildPartial()
Returns
clear()
public JobNotification.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public JobNotification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessage()
public JobNotification.Builder clearMessage()
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public JobNotification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPubsubTopic()
public JobNotification.Builder clearPubsubTopic()
The Pub/Sub topic where notifications like the job state changes
will be published. This topic should be an existing topic in the same
project with the job and billings will be charged to this project. If no
topic is specified, there will be no Pub/Sub messages sent. Topic
format is projects/{project}/topics/{topic}
.
string pubsub_topic = 1;
Returns
clone()
public JobNotification.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public JobNotification getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMessage()
public JobNotification.Message getMessage()
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Returns
getMessageBuilder()
public JobNotification.Message.Builder getMessageBuilder()
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Returns
getMessageOrBuilder()
public JobNotification.MessageOrBuilder getMessageOrBuilder()
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Returns
getPubsubTopic()
public String getPubsubTopic()
The Pub/Sub topic where notifications like the job state changes
will be published. This topic should be an existing topic in the same
project with the job and billings will be charged to this project. If no
topic is specified, there will be no Pub/Sub messages sent. Topic
format is projects/{project}/topics/{topic}
.
string pubsub_topic = 1;
Returns
Type |
Description |
String |
The pubsubTopic.
|
getPubsubTopicBytes()
public ByteString getPubsubTopicBytes()
The Pub/Sub topic where notifications like the job state changes
will be published. This topic should be an existing topic in the same
project with the job and billings will be charged to this project. If no
topic is specified, there will be no Pub/Sub messages sent. Topic
format is projects/{project}/topics/{topic}
.
string pubsub_topic = 1;
Returns
Type |
Description |
ByteString |
The bytes for pubsubTopic.
|
hasMessage()
public boolean hasMessage()
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Returns
Type |
Description |
boolean |
Whether the message field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(JobNotification other)
public JobNotification.Builder mergeFrom(JobNotification other)
Parameter
Returns
public JobNotification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JobNotification.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMessage(JobNotification.Message value)
public JobNotification.Builder mergeMessage(JobNotification.Message value)
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobNotification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public JobNotification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMessage(JobNotification.Message value)
public JobNotification.Builder setMessage(JobNotification.Message value)
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Parameter
Returns
setMessage(JobNotification.Message.Builder builderForValue)
public JobNotification.Builder setMessage(JobNotification.Message.Builder builderForValue)
The message caters the message attributes configuration will to be sent
to this Pub/Sub topic. Without this field, there is no message being sent
by default.
.google.cloud.batch.v1.JobNotification.Message message = 2;
Parameter
Returns
setPubsubTopic(String value)
public JobNotification.Builder setPubsubTopic(String value)
The Pub/Sub topic where notifications like the job state changes
will be published. This topic should be an existing topic in the same
project with the job and billings will be charged to this project. If no
topic is specified, there will be no Pub/Sub messages sent. Topic
format is projects/{project}/topics/{topic}
.
string pubsub_topic = 1;
Parameter
Name |
Description |
value |
String
The pubsubTopic to set.
|
Returns
setPubsubTopicBytes(ByteString value)
public JobNotification.Builder setPubsubTopicBytes(ByteString value)
The Pub/Sub topic where notifications like the job state changes
will be published. This topic should be an existing topic in the same
project with the job and billings will be charged to this project. If no
topic is specified, there will be no Pub/Sub messages sent. Topic
format is projects/{project}/topics/{topic}
.
string pubsub_topic = 1;
Parameter
Name |
Description |
value |
ByteString
The bytes for pubsubTopic to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobNotification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JobNotification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides