Class JobNotification (0.2.0)

public final class JobNotification extends GeneratedMessageV3 implements JobNotificationOrBuilder

Notification configurations.

Protobuf type google.cloud.batch.v1alpha.JobNotification

Static Fields

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

PUBSUB_TOPIC_FIELD_NUMBER

public static final int PUBSUB_TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static JobNotification getDefaultInstance()
Returns
TypeDescription
JobNotification

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static JobNotification.Builder newBuilder()
Returns
TypeDescription
JobNotification.Builder

newBuilder(JobNotification prototype)

public static JobNotification.Builder newBuilder(JobNotification prototype)
Parameter
NameDescription
prototypeJobNotification
Returns
TypeDescription
JobNotification.Builder

parseDelimitedFrom(InputStream input)

public static JobNotification parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static JobNotification parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static JobNotification parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static JobNotification parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static JobNotification parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static JobNotification parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static JobNotification parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobNotification
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<JobNotification> parser()
Returns
TypeDescription
Parser<JobNotification>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public JobNotification getDefaultInstanceForType()
Returns
TypeDescription
JobNotification

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;

Returns
TypeDescription
JobNotification.Message

The message.

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;

Returns
TypeDescription
JobNotification.MessageOrBuilder

getParserForType()

public Parser<JobNotification> getParserForType()
Returns
TypeDescription
Parser<JobNotification>
Overrides

getPubsubTopic()

public String getPubsubTopic()

The Pub/Sub topic where notifications like the job state changes will be published. This topic 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. This topic 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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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;

Returns
TypeDescription
boolean

Whether the message field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public JobNotification.Builder newBuilderForType()
Returns
TypeDescription
JobNotification.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected JobNotification.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
JobNotification.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public JobNotification.Builder toBuilder()
Returns
TypeDescription
JobNotification.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException