Class GatewayOuterClass.JobResult.Builder

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

public static final class GatewayOuterClass.JobResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<GatewayOuterClass.JobResult.Builder> implements GatewayOuterClass.JobResultOrBuilder
Protobuf type gateway_protocol.JobResult
  • 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.Builder<GatewayOuterClass.JobResult.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.GeneratedMessage.Builder<GatewayOuterClass.JobResult.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.GeneratedMessage.Builder<GatewayOuterClass.JobResult.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public GatewayOuterClass.JobResult.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<GatewayOuterClass.JobResult.Builder>
    • mergeFrom

    • isInitialized

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

      public GatewayOuterClass.JobResult.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<GatewayOuterClass.JobResult.Builder>
      Throws:
      IOException
    • 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.
    • setDenied

      public GatewayOuterClass.JobResult.Builder setDenied(boolean value)
       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;
      Parameters:
      value - The denied to set.
      Returns:
      This builder for chaining.
    • clearDenied

       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;
      Returns:
      This builder for chaining.
    • 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.
    • setCorrections

       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;
    • setCorrections

       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;
    • mergeCorrections

       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;
    • clearCorrections

      public GatewayOuterClass.JobResult.Builder clearCorrections()
       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;
    • getCorrectionsBuilder

      public GatewayOuterClass.JobResultCorrections.Builder getCorrectionsBuilder()
       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;
    • 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.
    • setDeniedReason

      public GatewayOuterClass.JobResult.Builder setDeniedReason(String value)
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Parameters:
      value - The deniedReason to set.
      Returns:
      This builder for chaining.
    • clearDeniedReason

      public GatewayOuterClass.JobResult.Builder clearDeniedReason()
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Returns:
      This builder for chaining.
    • setDeniedReasonBytes

      public GatewayOuterClass.JobResult.Builder setDeniedReasonBytes(com.google.protobuf.ByteString value)
       The reason provided by the user task listener for denying the work.
       
      optional string deniedReason = 3;
      Parameters:
      value - The bytes for deniedReason to set.
      Returns:
      This builder for chaining.