Class GatewayOuterClass.ActivateJobsRequest.Builder

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

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

      public GatewayOuterClass.ActivateJobsRequest 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

      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.ActivateJobsRequest.Builder>
    • setField

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

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

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

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

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

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

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

      public String getType()
       the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
       type="payment-service" />)
       
      string type = 1;
      Specified by:
      getType in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
       type="payment-service" />)
       
      string type = 1;
      Specified by:
      getTypeBytes in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The bytes for type.
    • setType

       the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
       type="payment-service" />)
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
       type="payment-service" />)
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public GatewayOuterClass.ActivateJobsRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
       the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition
       type="payment-service" />)
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getWorker

      public String getWorker()
       the name of the worker activating the jobs, mostly used for logging purposes
       
      string worker = 2;
      Specified by:
      getWorker in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The worker.
    • getWorkerBytes

      public com.google.protobuf.ByteString getWorkerBytes()
       the name of the worker activating the jobs, mostly used for logging purposes
       
      string worker = 2;
      Specified by:
      getWorkerBytes in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The bytes for worker.
    • setWorker

       the name of the worker activating the jobs, mostly used for logging purposes
       
      string worker = 2;
      Parameters:
      value - The worker to set.
      Returns:
      This builder for chaining.
    • clearWorker

       the name of the worker activating the jobs, mostly used for logging purposes
       
      string worker = 2;
      Returns:
      This builder for chaining.
    • setWorkerBytes

      public GatewayOuterClass.ActivateJobsRequest.Builder setWorkerBytes(com.google.protobuf.ByteString value)
       the name of the worker activating the jobs, mostly used for logging purposes
       
      string worker = 2;
      Parameters:
      value - The bytes for worker to set.
      Returns:
      This builder for chaining.
    • getTimeout

      public long getTimeout()
       a job returned after this call will not be activated by another call until the
       timeout (in ms) has been reached
       
      int64 timeout = 3;
      Specified by:
      getTimeout in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The timeout.
    • setTimeout

      public GatewayOuterClass.ActivateJobsRequest.Builder setTimeout(long value)
       a job returned after this call will not be activated by another call until the
       timeout (in ms) has been reached
       
      int64 timeout = 3;
      Parameters:
      value - The timeout to set.
      Returns:
      This builder for chaining.
    • clearTimeout

       a job returned after this call will not be activated by another call until the
       timeout (in ms) has been reached
       
      int64 timeout = 3;
      Returns:
      This builder for chaining.
    • getMaxJobsToActivate

      public int getMaxJobsToActivate()
       the maximum jobs to activate by this request
       
      int32 maxJobsToActivate = 4;
      Specified by:
      getMaxJobsToActivate in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The maxJobsToActivate.
    • setMaxJobsToActivate

      public GatewayOuterClass.ActivateJobsRequest.Builder setMaxJobsToActivate(int value)
       the maximum jobs to activate by this request
       
      int32 maxJobsToActivate = 4;
      Parameters:
      value - The maxJobsToActivate to set.
      Returns:
      This builder for chaining.
    • clearMaxJobsToActivate

      public GatewayOuterClass.ActivateJobsRequest.Builder clearMaxJobsToActivate()
       the maximum jobs to activate by this request
       
      int32 maxJobsToActivate = 4;
      Returns:
      This builder for chaining.
    • getFetchVariableList

      public com.google.protobuf.ProtocolStringList getFetchVariableList()
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Specified by:
      getFetchVariableList in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      A list containing the fetchVariable.
    • getFetchVariableCount

      public int getFetchVariableCount()
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Specified by:
      getFetchVariableCount in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The count of fetchVariable.
    • getFetchVariable

      public String getFetchVariable(int index)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Specified by:
      getFetchVariable in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The fetchVariable at the given index.
    • getFetchVariableBytes

      public com.google.protobuf.ByteString getFetchVariableBytes(int index)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Specified by:
      getFetchVariableBytes in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the fetchVariable at the given index.
    • setFetchVariable

      public GatewayOuterClass.ActivateJobsRequest.Builder setFetchVariable(int index, String value)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Parameters:
      index - The index to set the value at.
      value - The fetchVariable to set.
      Returns:
      This builder for chaining.
    • addFetchVariable

      public GatewayOuterClass.ActivateJobsRequest.Builder addFetchVariable(String value)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Parameters:
      value - The fetchVariable to add.
      Returns:
      This builder for chaining.
    • addAllFetchVariable

      public GatewayOuterClass.ActivateJobsRequest.Builder addAllFetchVariable(Iterable<String> values)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Parameters:
      values - The fetchVariable to add.
      Returns:
      This builder for chaining.
    • clearFetchVariable

      public GatewayOuterClass.ActivateJobsRequest.Builder clearFetchVariable()
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Returns:
      This builder for chaining.
    • addFetchVariableBytes

      public GatewayOuterClass.ActivateJobsRequest.Builder addFetchVariableBytes(com.google.protobuf.ByteString value)
       a list of variables to fetch as the job variables; if empty, all visible variables at
       the time of activation for the scope of the job will be returned
       
      repeated string fetchVariable = 5;
      Parameters:
      value - The bytes of the fetchVariable to add.
      Returns:
      This builder for chaining.
    • getRequestTimeout

      public long getRequestTimeout()
       The request will be completed when at least one job is activated or after the requestTimeout (in ms).
       if the requestTimeout = 0, a default timeout is used.
       if the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.
       
      int64 requestTimeout = 6;
      Specified by:
      getRequestTimeout in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The requestTimeout.
    • setRequestTimeout

      public GatewayOuterClass.ActivateJobsRequest.Builder setRequestTimeout(long value)
       The request will be completed when at least one job is activated or after the requestTimeout (in ms).
       if the requestTimeout = 0, a default timeout is used.
       if the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.
       
      int64 requestTimeout = 6;
      Parameters:
      value - The requestTimeout to set.
      Returns:
      This builder for chaining.
    • clearRequestTimeout

      public GatewayOuterClass.ActivateJobsRequest.Builder clearRequestTimeout()
       The request will be completed when at least one job is activated or after the requestTimeout (in ms).
       if the requestTimeout = 0, a default timeout is used.
       if the requestTimeout < 0, long polling is disabled and the request is completed immediately, even when no job is activated.
       
      int64 requestTimeout = 6;
      Returns:
      This builder for chaining.
    • getTenantIdsList

      public com.google.protobuf.ProtocolStringList getTenantIdsList()
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Specified by:
      getTenantIdsList in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      A list containing the tenantIds.
    • getTenantIdsCount

      public int getTenantIdsCount()
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Specified by:
      getTenantIdsCount in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Returns:
      The count of tenantIds.
    • getTenantIds

      public String getTenantIds(int index)
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Specified by:
      getTenantIds in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tenantIds at the given index.
    • getTenantIdsBytes

      public com.google.protobuf.ByteString getTenantIdsBytes(int index)
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Specified by:
      getTenantIdsBytes in interface GatewayOuterClass.ActivateJobsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tenantIds at the given index.
    • setTenantIds

      public GatewayOuterClass.ActivateJobsRequest.Builder setTenantIds(int index, String value)
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Parameters:
      index - The index to set the value at.
      value - The tenantIds to set.
      Returns:
      This builder for chaining.
    • addTenantIds

       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Parameters:
      value - The tenantIds to add.
      Returns:
      This builder for chaining.
    • addAllTenantIds

       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Parameters:
      values - The tenantIds to add.
      Returns:
      This builder for chaining.
    • clearTenantIds

       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Returns:
      This builder for chaining.
    • addTenantIdsBytes

      public GatewayOuterClass.ActivateJobsRequest.Builder addTenantIdsBytes(com.google.protobuf.ByteString value)
       a list of IDs of tenants for which to activate jobs
       
      repeated string tenantIds = 7;
      Parameters:
      value - The bytes of the tenantIds to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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