Class GatewayOuterClass.FailJobRequest.Builder

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

public static final class GatewayOuterClass.FailJobRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.FailJobRequest.Builder> implements GatewayOuterClass.FailJobRequestOrBuilder
Protobuf type gateway_protocol.FailJobRequest
  • Method Details

    • 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<GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • getDefaultInstanceForType

      public GatewayOuterClass.FailJobRequest 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.FailJobRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<GatewayOuterClass.FailJobRequest.Builder>
    • setField

      public GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • clearField

      public GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • clearOneof

      public GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • setRepeatedField

      public GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

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

      public long getJobKey()
       the unique job identifier, as obtained when activating the job
       
      int64 jobKey = 1;
      Specified by:
      getJobKey in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The jobKey.
    • setJobKey

      public GatewayOuterClass.FailJobRequest.Builder setJobKey(long value)
       the unique job identifier, as obtained when activating the job
       
      int64 jobKey = 1;
      Parameters:
      value - The jobKey to set.
      Returns:
      This builder for chaining.
    • clearJobKey

       the unique job identifier, as obtained when activating the job
       
      int64 jobKey = 1;
      Returns:
      This builder for chaining.
    • getRetries

      public int getRetries()
       the amount of retries the job should have left
       
      int32 retries = 2;
      Specified by:
      getRetries in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The retries.
    • setRetries

      public GatewayOuterClass.FailJobRequest.Builder setRetries(int value)
       the amount of retries the job should have left
       
      int32 retries = 2;
      Parameters:
      value - The retries to set.
      Returns:
      This builder for chaining.
    • clearRetries

       the amount of retries the job should have left
       
      int32 retries = 2;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       an optional message describing why the job failed
       this is particularly useful if a job runs out of retries and an incident is raised,
       as it this message can help explain why an incident was raised
       
      string errorMessage = 3;
      Specified by:
      getErrorMessage in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       an optional message describing why the job failed
       this is particularly useful if a job runs out of retries and an incident is raised,
       as it this message can help explain why an incident was raised
       
      string errorMessage = 3;
      Specified by:
      getErrorMessageBytes in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public GatewayOuterClass.FailJobRequest.Builder setErrorMessage(String value)
       an optional message describing why the job failed
       this is particularly useful if a job runs out of retries and an incident is raised,
       as it this message can help explain why an incident was raised
       
      string errorMessage = 3;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public GatewayOuterClass.FailJobRequest.Builder clearErrorMessage()
       an optional message describing why the job failed
       this is particularly useful if a job runs out of retries and an incident is raised,
       as it this message can help explain why an incident was raised
       
      string errorMessage = 3;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public GatewayOuterClass.FailJobRequest.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       an optional message describing why the job failed
       this is particularly useful if a job runs out of retries and an incident is raised,
       as it this message can help explain why an incident was raised
       
      string errorMessage = 3;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • getRetryBackOff

      public long getRetryBackOff()
       the backoff timeout (in ms) for the next retry
       
      int64 retryBackOff = 4;
      Specified by:
      getRetryBackOff in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The retryBackOff.
    • setRetryBackOff

      public GatewayOuterClass.FailJobRequest.Builder setRetryBackOff(long value)
       the backoff timeout (in ms) for the next retry
       
      int64 retryBackOff = 4;
      Parameters:
      value - The retryBackOff to set.
      Returns:
      This builder for chaining.
    • clearRetryBackOff

      public GatewayOuterClass.FailJobRequest.Builder clearRetryBackOff()
       the backoff timeout (in ms) for the next retry
       
      int64 retryBackOff = 4;
      Returns:
      This builder for chaining.
    • getVariables

      public String getVariables()
       JSON document that will instantiate the variables at the local scope of the
       job's associated task; it must be a JSON object, as variables will be mapped in a
       key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
       "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
       valid argument, as the root of the JSON document is an array and not an object.
       
      string variables = 5;
      Specified by:
      getVariables in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The variables.
    • getVariablesBytes

      public com.google.protobuf.ByteString getVariablesBytes()
       JSON document that will instantiate the variables at the local scope of the
       job's associated task; it must be a JSON object, as variables will be mapped in a
       key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
       "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
       valid argument, as the root of the JSON document is an array and not an object.
       
      string variables = 5;
      Specified by:
      getVariablesBytes in interface GatewayOuterClass.FailJobRequestOrBuilder
      Returns:
      The bytes for variables.
    • setVariables

      public GatewayOuterClass.FailJobRequest.Builder setVariables(String value)
       JSON document that will instantiate the variables at the local scope of the
       job's associated task; it must be a JSON object, as variables will be mapped in a
       key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
       "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
       valid argument, as the root of the JSON document is an array and not an object.
       
      string variables = 5;
      Parameters:
      value - The variables to set.
      Returns:
      This builder for chaining.
    • clearVariables

       JSON document that will instantiate the variables at the local scope of the
       job's associated task; it must be a JSON object, as variables will be mapped in a
       key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
       "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
       valid argument, as the root of the JSON document is an array and not an object.
       
      string variables = 5;
      Returns:
      This builder for chaining.
    • setVariablesBytes

      public GatewayOuterClass.FailJobRequest.Builder setVariablesBytes(com.google.protobuf.ByteString value)
       JSON document that will instantiate the variables at the local scope of the
       job's associated task; it must be a JSON object, as variables will be mapped in a
       key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and
       "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a
       valid argument, as the root of the JSON document is an array and not an object.
       
      string variables = 5;
      Parameters:
      value - The bytes for variables to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>
    • mergeUnknownFields

      public final GatewayOuterClass.FailJobRequest.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<GatewayOuterClass.FailJobRequest.Builder>