Package com.google.cloud.batch.v1alpha
Class JobNotification.Message.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
com.google.cloud.batch.v1alpha.JobNotification.Message.Builder
- All Implemented Interfaces:
JobNotification.MessageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- JobNotification.Message
public static final class JobNotification.Message.Builder
extends com.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
implements JobNotification.MessageOrBuilder
Message details. Describe the conditions under which messages will be sent. If no attribute is defined, no message will be sent by default. One message should specify either the job or the task level attributes, but not both. For example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task level: TASK_STATE_CHANGED and/or a specified new_task_state.Protobuf type
google.cloud.batch.v1alpha.JobNotification.Message-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The new job state.The new task state.The message type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe new job state.intThe new job state.The new task state.intThe new task state.getType()The message type.intThe message type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(JobNotification.Message other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setNewJobState(JobStatus.State value) The new job state.setNewJobStateValue(int value) The new job state.setNewTaskState(TaskStatus.State value) The new task state.setNewTaskStateValue(int value) The new task state.setType(JobNotification.Type value) The message type.setTypeValue(int value) The message type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Message.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder>
-
mergeFrom
public JobNotification.Message.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JobNotification.Message.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()The message type.
.google.cloud.batch.v1alpha.JobNotification.Type type = 1;- Specified by:
getTypeValuein interfaceJobNotification.MessageOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The message type.
.google.cloud.batch.v1alpha.JobNotification.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The message type.
.google.cloud.batch.v1alpha.JobNotification.Type type = 1;- Specified by:
getTypein interfaceJobNotification.MessageOrBuilder- Returns:
- The type.
-
setType
The message type.
.google.cloud.batch.v1alpha.JobNotification.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The message type.
.google.cloud.batch.v1alpha.JobNotification.Type type = 1;- Returns:
- This builder for chaining.
-
getNewJobStateValue
public int getNewJobStateValue()The new job state.
.google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;- Specified by:
getNewJobStateValuein interfaceJobNotification.MessageOrBuilder- Returns:
- The enum numeric value on the wire for newJobState.
-
setNewJobStateValue
The new job state.
.google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;- Parameters:
value- The enum numeric value on the wire for newJobState to set.- Returns:
- This builder for chaining.
-
getNewJobState
The new job state.
.google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;- Specified by:
getNewJobStatein interfaceJobNotification.MessageOrBuilder- Returns:
- The newJobState.
-
setNewJobState
The new job state.
.google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;- Parameters:
value- The newJobState to set.- Returns:
- This builder for chaining.
-
clearNewJobState
The new job state.
.google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;- Returns:
- This builder for chaining.
-
getNewTaskStateValue
public int getNewTaskStateValue()The new task state.
.google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;- Specified by:
getNewTaskStateValuein interfaceJobNotification.MessageOrBuilder- Returns:
- The enum numeric value on the wire for newTaskState.
-
setNewTaskStateValue
The new task state.
.google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;- Parameters:
value- The enum numeric value on the wire for newTaskState to set.- Returns:
- This builder for chaining.
-
getNewTaskState
The new task state.
.google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;- Specified by:
getNewTaskStatein interfaceJobNotification.MessageOrBuilder- Returns:
- The newTaskState.
-
setNewTaskState
The new task state.
.google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;- Parameters:
value- The newTaskState to set.- Returns:
- This builder for chaining.
-
clearNewTaskState
The new task state.
.google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;- Returns:
- This builder for chaining.
-