public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getWorker().isEmpty()) { worker_ = other.worker_; onChanged(); } if (other.getTimeout() != 0L) { setTimeout(other.getTimeout()); } if (other.getAmount() != 0) { setAmount(other.getAmount()); } if (!other.fetchVariable_.isEmpty()) { if (fetchVariable_.isEmpty()) { fetchVariable_ = other.fetchVariable_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFetchVariableIsMutable(); fetchVariable_.addAll(other.fetchVariable_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ActivateJobs", requestType = io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest.class, responseType = io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest, io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsResponse> getActivateJobsMethod() { io.grpc.MethodDescriptor<io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest, io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsResponse> getActivateJobsMethod; if ((getActivateJobsMethod = GatewayGrpc.getActivateJobsMethod) == null) { synchronized (GatewayGrpc.class) { if ((getActivateJobsMethod = GatewayGrpc.getActivateJobsMethod) == null) { GatewayGrpc.getActivateJobsMethod = getActivateJobsMethod = io.grpc.MethodDescriptor.<io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest, io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName( "gateway_protocol.Gateway", "ActivateJobs")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsResponse.getDefaultInstance())) .setSchemaDescriptor(new GatewayMethodDescriptorSupplier("ActivateJobs")) .build(); } } } return getActivateJobsMethod; }
/** * <pre> * the job type, as defined in the BPMN process (e.g. <zeebe:taskDefinition * type="payment-service" />) * </pre> * * <code>string type = 1;</code> */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest getDefaultInstanceForType() { return io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest.getDefaultInstance(); }
/** * <pre> * the name of the worker activating the jobs, mostly used for logging purposes * </pre> * * <code>string worker = 2;</code> */ public Builder clearWorker() { worker_ = getDefaultInstance().getWorker(); onChanged(); return this; } /**