public final class JobNotification extends GeneratedMessageV3 implements JobNotificationOrBuilder
Notification configurations.
Protobuf type google.cloud.batch.v1.JobNotification
Static Fields
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
Field Value
PUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static JobNotification getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static JobNotification.Builder newBuilder()
Returns
newBuilder(JobNotification prototype)
public static JobNotification.Builder newBuilder(JobNotification prototype)
Parameter
Returns
public static JobNotification parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static JobNotification parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static JobNotification parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static JobNotification parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static JobNotification parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static JobNotification parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static JobNotification parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static JobNotification parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static JobNotification parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static JobNotification parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static JobNotification parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static JobNotification parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<JobNotification> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public JobNotification getDefaultInstanceForType()
Returns
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
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
getParserForType()
public Parser<JobNotification> getParserForType()
Returns
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
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 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
Type |
Description |
ByteString |
The bytes for pubsubTopic.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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.v1.JobNotification.Message message = 2;
Returns
Type |
Description |
boolean |
Whether the message field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public JobNotification.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected JobNotification.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public JobNotification.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions