Class JobNotification.Builder (0.41.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobNotification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobNotification.Builder
Overrides

build()

public JobNotification build()
Returns
TypeDescription
JobNotification

buildPartial()

public JobNotification buildPartial()
Returns
TypeDescription
JobNotification

clear()

public JobNotification.Builder clear()
Returns
TypeDescription
JobNotification.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobNotification.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobNotification.Builder
Overrides

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;

Returns
TypeDescription
JobNotification.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public JobNotification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobNotification.Builder
Overrides

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
TypeDescription
JobNotification.Builder

This builder for chaining.

clone()

public JobNotification.Builder clone()
Returns
TypeDescription
JobNotification.Builder
Overrides

getDefaultInstanceForType()

public JobNotification getDefaultInstanceForType()
Returns
TypeDescription
JobNotification

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
JobNotification.Message

The message.

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;

Returns
TypeDescription
JobNotification.Message.Builder

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;

Returns
TypeDescription
JobNotification.MessageOrBuilder

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;

Returns
TypeDescription
String

The pubsubTopic.

getPubsubTopicBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for pubsubTopic.

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;

Returns
TypeDescription
boolean

Whether the message field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobNotification other)

public JobNotification.Builder mergeFrom(JobNotification other)
Parameter
NameDescription
otherJobNotification
Returns
TypeDescription
JobNotification.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobNotification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobNotification.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobNotification.Builder
Overrides

mergeMessage(JobNotification.Message value)

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;

Parameter
NameDescription
valueJobNotification.Message
Returns
TypeDescription
JobNotification.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobNotification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobNotification.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public JobNotification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobNotification.Builder
Overrides

setMessage(JobNotification.Message value)

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;

Parameter
NameDescription
valueJobNotification.Message
Returns
TypeDescription
JobNotification.Builder

setMessage(JobNotification.Message.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueJobNotification.Message.Builder
Returns
TypeDescription
JobNotification.Builder

setPubsubTopic(String value)

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;

Parameter
NameDescription
valueString

The pubsubTopic to set.

Returns
TypeDescription
JobNotification.Builder

This builder for chaining.

setPubsubTopicBytes(ByteString value)

public JobNotification.Builder setPubsubTopicBytes(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;

Parameter
NameDescription
valueByteString

The bytes for pubsubTopic to set.

Returns
TypeDescription
JobNotification.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobNotification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
JobNotification.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final JobNotification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobNotification.Builder
Overrides