Class GatewayOuterClass.JobResult

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.camunda.zeebe.gateway.protocol.GatewayOuterClass.JobResult
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.JobResultOrBuilder, Serializable
Enclosing class:
GatewayOuterClass

public static final class GatewayOuterClass.JobResult extends com.google.protobuf.GeneratedMessage implements GatewayOuterClass.JobResultOrBuilder
Protobuf type gateway_protocol.JobResult
See Also:
  • Field Details

    • DENIED_FIELD_NUMBER

      public static final int DENIED_FIELD_NUMBER
      See Also:
    • CORRECTIONS_FIELD_NUMBER

      public static final int CORRECTIONS_FIELD_NUMBER
      See Also:
    • DENIEDREASON_FIELD_NUMBER

      public static final int DENIEDREASON_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasDenied

      public boolean hasDenied()
       Indicates whether the worker denies the work, i.e. explicitly doesn't approve it.
       For example, a user task listener can deny the completion of a user task by setting this flag to true.
       In this example, the completion of a task is represented by a job that the worker can complete as denied.
       As a result, the completion request is rejected and the task remains active.
       Defaults to false.
       
      optional bool denied = 1;
      Specified by:
      hasDenied in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      Whether the denied field is set.
    • getDenied

      public boolean getDenied()
       Indicates whether the worker denies the work, i.e. explicitly doesn't approve it.
       For example, a user task listener can deny the completion of a user task by setting this flag to true.
       In this example, the completion of a task is represented by a job that the worker can complete as denied.
       As a result, the completion request is rejected and the task remains active.
       Defaults to false.
       
      optional bool denied = 1;
      Specified by:
      getDenied in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      The denied.
    • hasCorrections

      public boolean hasCorrections()
       Attributes that were corrected by the worker.
       The following attributes can be corrected, additional attributes will be ignored:
       * `assignee` - clear by providing an empty string
       * `dueDate` - clear by providing an empty string
       * `followUpDate` - clear by providing an empty string
       * `candidateGroups` - clear by providing an empty list
       * `candidateUsers` - clear by providing an empty list
       * `priority` - minimum 0, maximum 100, default 50
       Omitting any of the attributes will preserve the persisted attribute's value.
       
      optional .gateway_protocol.JobResultCorrections corrections = 2;
      Specified by:
      hasCorrections in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      Whether the corrections field is set.
    • getCorrections

      public GatewayOuterClass.JobResultCorrections getCorrections()
       Attributes that were corrected by the worker.
       The following attributes can be corrected, additional attributes will be ignored:
       * `assignee` - clear by providing an empty string
       * `dueDate` - clear by providing an empty string
       * `followUpDate` - clear by providing an empty string
       * `candidateGroups` - clear by providing an empty list
       * `candidateUsers` - clear by providing an empty list
       * `priority` - minimum 0, maximum 100, default 50
       Omitting any of the attributes will preserve the persisted attribute's value.
       
      optional .gateway_protocol.JobResultCorrections corrections = 2;
      Specified by:
      getCorrections in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      The corrections.
    • getCorrectionsOrBuilder

      public GatewayOuterClass.JobResultCorrectionsOrBuilder getCorrectionsOrBuilder()
       Attributes that were corrected by the worker.
       The following attributes can be corrected, additional attributes will be ignored:
       * `assignee` - clear by providing an empty string
       * `dueDate` - clear by providing an empty string
       * `followUpDate` - clear by providing an empty string
       * `candidateGroups` - clear by providing an empty list
       * `candidateUsers` - clear by providing an empty list
       * `priority` - minimum 0, maximum 100, default 50
       Omitting any of the attributes will preserve the persisted attribute's value.
       
      optional .gateway_protocol.JobResultCorrections corrections = 2;
      Specified by:
      getCorrectionsOrBuilder in interface GatewayOuterClass.JobResultOrBuilder
    • hasDeniedReason

      public boolean hasDeniedReason()
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Specified by:
      hasDeniedReason in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      Whether the deniedReason field is set.
    • getDeniedReason

      public String getDeniedReason()
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Specified by:
      getDeniedReason in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      The deniedReason.
    • getDeniedReasonBytes

      public com.google.protobuf.ByteString getDeniedReasonBytes()
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Specified by:
      getDeniedReasonBytes in interface GatewayOuterClass.JobResultOrBuilder
      Returns:
      The bytes for deniedReason.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GatewayOuterClass.JobResult parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GatewayOuterClass.JobResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GatewayOuterClass.JobResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GatewayOuterClass.JobResult.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GatewayOuterClass.JobResult.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GatewayOuterClass.JobResult.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GatewayOuterClass.JobResult getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GatewayOuterClass.JobResult> parser()
    • getParserForType

      public com.google.protobuf.Parser<GatewayOuterClass.JobResult> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GatewayOuterClass.JobResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder