Package io.zeebe.gateway.protocol
Class GatewayOuterClass.ActivateJobsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
- io.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 typegateway_protocol.ActivateJobsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 returnedGatewayOuterClass.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 returnedGatewayOuterClass.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 returnedGatewayOuterClass.ActivateJobsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayOuterClass.ActivateJobsRequest
build()
GatewayOuterClass.ActivateJobsRequest
buildPartial()
GatewayOuterClass.ActivateJobsRequest.Builder
clear()
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 returnedGatewayOuterClass.ActivateJobsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
GatewayOuterClass.ActivateJobsRequest.Builder
clearMaxJobsToActivate()
the maximum jobs to activate by this requestGatewayOuterClass.ActivateJobsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
GatewayOuterClass.ActivateJobsRequest.Builder
clearRequestTimeout()
The request will be completed when at least one job is activated or after the requestTimeout (in ms).GatewayOuterClass.ActivateJobsRequest.Builder
clearTimeout()
a job returned after this call will not be activated by another call until the timeout (in ms) has been reachedGatewayOuterClass.ActivateJobsRequest.Builder
clearType()
the job type, as defined in the BPMN process (e.g.GatewayOuterClass.ActivateJobsRequest.Builder
clearWorker()
the name of the worker activating the jobs, mostly used for logging purposesGatewayOuterClass.ActivateJobsRequest.Builder
clone()
GatewayOuterClass.ActivateJobsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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 returnedcom.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 returnedint
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 returnedcom.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 returnedint
getMaxJobsToActivate()
the maximum jobs to activate by this requestlong
getRequestTimeout()
The request will be completed when at least one job is activated or after the requestTimeout (in ms).long
getTimeout()
a job returned after this call will not be activated by another call until the timeout (in ms) has been reachedString
getType()
the job type, as defined in the BPMN process (e.g.com.google.protobuf.ByteString
getTypeBytes()
the job type, as defined in the BPMN process (e.g.String
getWorker()
the name of the worker activating the jobs, mostly used for logging purposescom.google.protobuf.ByteString
getWorkerBytes()
the name of the worker activating the jobs, mostly used for logging purposesprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GatewayOuterClass.ActivateJobsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GatewayOuterClass.ActivateJobsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
GatewayOuterClass.ActivateJobsRequest.Builder
mergeFrom(GatewayOuterClass.ActivateJobsRequest other)
GatewayOuterClass.ActivateJobsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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 returnedGatewayOuterClass.ActivateJobsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
GatewayOuterClass.ActivateJobsRequest.Builder
setMaxJobsToActivate(int value)
the maximum jobs to activate by this requestGatewayOuterClass.ActivateJobsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
GatewayOuterClass.ActivateJobsRequest.Builder
setRequestTimeout(long value)
The request will be completed when at least one job is activated or after the requestTimeout (in ms).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 reachedGatewayOuterClass.ActivateJobsRequest.Builder
setType(String value)
the job type, as defined in the BPMN process (e.g.GatewayOuterClass.ActivateJobsRequest.Builder
setTypeBytes(com.google.protobuf.ByteString value)
the job type, as defined in the BPMN process (e.g.GatewayOuterClass.ActivateJobsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GatewayOuterClass.ActivateJobsRequest.Builder
setWorker(String value)
the name of the worker activating the jobs, mostly used for logging purposesGatewayOuterClass.ActivateJobsRequest.Builder
setWorkerBytes(com.google.protobuf.ByteString value)
the name of the worker activating the jobs, mostly used for logging purposes-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
clear
public GatewayOuterClass.ActivateJobsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
getDefaultInstanceForType
public GatewayOuterClass.ActivateJobsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GatewayOuterClass.ActivateJobsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayOuterClass.ActivateJobsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GatewayOuterClass.ActivateJobsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
clearField
public GatewayOuterClass.ActivateJobsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
clearOneof
public GatewayOuterClass.ActivateJobsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
mergeFrom
public GatewayOuterClass.ActivateJobsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
mergeFrom
public GatewayOuterClass.ActivateJobsRequest.Builder mergeFrom(GatewayOuterClass.ActivateJobsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.ActivateJobsRequestOrBuilder
- Returns:
- The bytes for type.
-
setType
public GatewayOuterClass.ActivateJobsRequest.Builder setType(String value)
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
public GatewayOuterClass.ActivateJobsRequest.Builder 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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.ActivateJobsRequestOrBuilder
- Returns:
- The bytes for worker.
-
setWorker
public GatewayOuterClass.ActivateJobsRequest.Builder setWorker(String value)
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
public GatewayOuterClass.ActivateJobsRequest.Builder 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 interfaceGatewayOuterClass.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
public GatewayOuterClass.ActivateJobsRequest.Builder 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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.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 interfaceGatewayOuterClass.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.
-
setUnknownFields
public final GatewayOuterClass.ActivateJobsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.ActivateJobsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivateJobsRequest.Builder>
-
-