Class StatusEvent.Builder

  • All Implemented Interfaces:
    StatusEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    StatusEvent

    public static final class StatusEvent.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
    implements StatusEventOrBuilder
     Status event
     
    Protobuf type google.cloud.batch.v1.StatusEvent
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • clear

        public StatusEvent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • getDefaultInstanceForType

        public StatusEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public StatusEvent build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public StatusEvent buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public StatusEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • setField

        public StatusEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • clearField

        public StatusEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • clearOneof

        public StatusEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • setRepeatedField

        public StatusEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • addRepeatedField

        public StatusEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • mergeFrom

        public StatusEvent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StatusEvent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • mergeFrom

        public StatusEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StatusEvent.Builder>
        Throws:
        IOException
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         Type of the event.
         
        string type = 3;
        Specified by:
        getTypeBytes in interface StatusEventOrBuilder
        Returns:
        The bytes for type.
      • setType

        public StatusEvent.Builder setType​(String value)
         Type of the event.
         
        string type = 3;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public StatusEvent.Builder clearType()
         Type of the event.
         
        string type = 3;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public StatusEvent.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         Type of the event.
         
        string type = 3;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Description of the event.
         
        string description = 1;
        Specified by:
        getDescriptionBytes in interface StatusEventOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public StatusEvent.Builder setDescription​(String value)
         Description of the event.
         
        string description = 1;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public StatusEvent.Builder clearDescription()
         Description of the event.
         
        string description = 1;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public StatusEvent.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the event.
         
        string description = 1;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasEventTime

        public boolean hasEventTime()
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
        Specified by:
        hasEventTime in interface StatusEventOrBuilder
        Returns:
        Whether the eventTime field is set.
      • getEventTime

        public com.google.protobuf.Timestamp getEventTime()
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
        Specified by:
        getEventTime in interface StatusEventOrBuilder
        Returns:
        The eventTime.
      • setEventTime

        public StatusEvent.Builder setEventTime​(com.google.protobuf.Timestamp value)
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
      • setEventTime

        public StatusEvent.Builder setEventTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
      • mergeEventTime

        public StatusEvent.Builder mergeEventTime​(com.google.protobuf.Timestamp value)
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
      • clearEventTime

        public StatusEvent.Builder clearEventTime()
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
      • getEventTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
      • getEventTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
         The time this event occurred.
         
        .google.protobuf.Timestamp event_time = 2;
        Specified by:
        getEventTimeOrBuilder in interface StatusEventOrBuilder
      • hasTaskExecution

        public boolean hasTaskExecution()
         Task Execution
         
        .google.cloud.batch.v1.TaskExecution task_execution = 4;
        Specified by:
        hasTaskExecution in interface StatusEventOrBuilder
        Returns:
        Whether the taskExecution field is set.
      • setTaskExecution

        public StatusEvent.Builder setTaskExecution​(TaskExecution value)
         Task Execution
         
        .google.cloud.batch.v1.TaskExecution task_execution = 4;
      • mergeTaskExecution

        public StatusEvent.Builder mergeTaskExecution​(TaskExecution value)
         Task Execution
         
        .google.cloud.batch.v1.TaskExecution task_execution = 4;
      • clearTaskExecution

        public StatusEvent.Builder clearTaskExecution()
         Task Execution
         
        .google.cloud.batch.v1.TaskExecution task_execution = 4;
      • getTaskExecutionBuilder

        public TaskExecution.Builder getTaskExecutionBuilder()
         Task Execution
         
        .google.cloud.batch.v1.TaskExecution task_execution = 4;
      • getTaskStateValue

        public int getTaskStateValue()
         Task State
         
        .google.cloud.batch.v1.TaskStatus.State task_state = 5;
        Specified by:
        getTaskStateValue in interface StatusEventOrBuilder
        Returns:
        The enum numeric value on the wire for taskState.
      • setTaskStateValue

        public StatusEvent.Builder setTaskStateValue​(int value)
         Task State
         
        .google.cloud.batch.v1.TaskStatus.State task_state = 5;
        Parameters:
        value - The enum numeric value on the wire for taskState to set.
        Returns:
        This builder for chaining.
      • setTaskState

        public StatusEvent.Builder setTaskState​(TaskStatus.State value)
         Task State
         
        .google.cloud.batch.v1.TaskStatus.State task_state = 5;
        Parameters:
        value - The taskState to set.
        Returns:
        This builder for chaining.
      • clearTaskState

        public StatusEvent.Builder clearTaskState()
         Task State
         
        .google.cloud.batch.v1.TaskStatus.State task_state = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final StatusEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>
      • mergeUnknownFields

        public final StatusEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StatusEvent.Builder>